public class WikittySecurityUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
WIKITTY_APPADMIN_GROUP_NAME
Name of the application administrators group
|
| Constructor and Description |
|---|
WikittySecurityUtil() |
| Modifier and Type | Method and Description |
|---|---|
static WikittyGroup |
createAppAdminGroup(WikittyUser user)
Create appAdminGroup and add current user as first member.
|
static String |
getUserForToken(WikittyService ws,
String securityToken)
Get a user corresponding to a securityToken
|
static boolean |
isMember(WikittyService ws,
String securityToken,
String userId,
String groupId)
Check on a WikittyService if a user is member of a group.
|
static boolean |
isOutdated(org.nuiton.util.ApplicationConfig config,
WikittyService ws,
String tokenId)
Verifie si la date du token depasse le temps authorise pour un token
Si l'option n'est pas presente dans la config retourne toujours false
(donc le token a une validite permanente)
|
public static final String WIKITTY_APPADMIN_GROUP_NAME
public static boolean isOutdated(org.nuiton.util.ApplicationConfig config,
WikittyService ws,
String tokenId)
date - la date a verifierpublic static boolean isMember(WikittyService ws, String securityToken, String userId, String groupId)
ws - the wikitty service to do the check onsecurityToken - the security tokenuserId - the user to check's wikitty idgroupId - the group to check the user is in's wikitty idpublic static String getUserForToken(WikittyService ws, String securityToken)
ws - the WikittyService to do the check onsecurityToken - the token of the user to search for.public static WikittyGroup createAppAdminGroup(WikittyUser user)
user - the user that will be the first admin group memberCopyright © 2009-2013 CodeLutin. All Rights Reserved.