public class TopiaSecurityUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CREATE |
static String |
CREATE_TEXT |
static int |
DELETE |
static String |
DELETE_TEXT |
static int |
LOAD |
static String |
LOAD_TEXT |
static String |
SECURITY_MANAGER_KEY |
static String |
TOPIA_LOGIN_MODULE |
static Class<?>[] |
TOPIA_SECURITY_PERSISTENCE_CLASSES |
static int |
UPDATE |
static String |
UPDATE_TEXT |
| Constructor and Description |
|---|
TopiaSecurityUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
actionsInt2String(int actions)
Transforme actions en une chaine de caractères
|
static int |
actionsString2Int(String actions)
Transforme actions en un entier.
|
static TopiaContext |
beginTransactionWithoutSecurity(TopiaContext transaction)
Création d'un context sans sécurité
|
static String |
digestSHABase64(String msg)
Applique un algorithme de hashage sur la chaine de caratère passée en
paramètre
|
static String |
digestSHAHex(String ch)
Fait le checksum SHA de la chaine de caractere le resultat est retourne
sous forme de chaine Hexadecimal.
|
static String |
getUserPrincipal()
Permet de récupérer parmis la liste des principals, le principal de type
TopiaUser
|
static String |
hash(String msg)
Applique un algorithme de hashage sur la chaine de caratère passée en
paramètre
|
public static final int LOAD
public static final String LOAD_TEXT
public static final int CREATE
public static final String CREATE_TEXT
public static final int UPDATE
public static final String UPDATE_TEXT
public static final int DELETE
public static final String DELETE_TEXT
public static final String SECURITY_MANAGER_KEY
public static final String TOPIA_LOGIN_MODULE
public static final Class<?>[] TOPIA_SECURITY_PERSISTENCE_CLASSES
public static String hash(String msg)
msg - la chaine de caractère sur laquelle on veut opérer le hashagepublic static String digestSHABase64(String msg)
msg - la chaine de caratère sur laquelle on veut opérer le hashagepublic static String digestSHAHex(String ch)
ch - ?public static int actionsString2Int(String actions)
actions - -
combinaison de mots cles "load" "update" "create" et "delete"
separes par des virgules. Ex : "load,update"public static String actionsInt2String(int actions)
actions - les actions sous forme d'un entierpublic static String getUserPrincipal()
public static TopiaContext beginTransactionWithoutSecurity(TopiaContext transaction) throws TopiaException
transaction - TopiaContext avec lequel le nouveau contexte est créeTopiaException - if any topia pbCopyright © 2004–2013 CodeLutin. All rights reserved.