|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.wikitty.services.WikittySecurityUtil
public class WikittySecurityUtil
Security utility methods. This class should replace #WikittySecurityHelper User: couteau Date: 22/12/10
| Field Summary | |
|---|---|
static String |
WIKITTY_APPADMIN_GROUP_NAME
Name of the application administrators group |
| Constructor Summary | |
|---|---|
WikittySecurityUtil()
|
|
| Method Summary | |
|---|---|
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) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WIKITTY_APPADMIN_GROUP_NAME
| Constructor Detail |
|---|
public WikittySecurityUtil()
| Method Detail |
|---|
public static boolean isOutdated(org.nuiton.util.ApplicationConfig config,
WikittyService ws,
String tokenId)
date - la date a verifier
public 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 id
public 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 member
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||