| java.lang.Object net.sf.jguard.core.authorization.permissions.PermissionUtils
createCaches | public static void createCaches() throws CacheException(Code) | | |
evaluatePermissionCollection | public static PermissionCollection evaluatePermissionCollection(ProtectionDomain protectionDomain, PermissionCollection pc)(Code) | | Resolve permission collection containing regular expressions.
To resolve the permissions, this method uses a particular Principal (UserPrincipal)
set to the user during authentication. If this principal is not present, the
permission collection given in parameters is returned with no modifications. If
the UserPrincipal is present but does not contain the required data to resolved the regex,
the permission is removed from the permission collection.
Parameters: protectionDomain - Parameters: pc - |
evaluatePrincipal | public static boolean evaluatePrincipal(RolePrincipal ppal, UserPrincipal userPrincipal)(Code) | | Evaluate principal definition attr and active attr.
To resolve definition attr, this method uses a particular Principal (UserPrincipal)
set to the user during authentication. If this principal is not present and the definition attr != null, the
definition attr is not evaluated and the function returns false.
definition attr take precedence against active attr, so
if definition evaluate to false but active is true, then evaluatePrincipal return false
Parameters: ppal - Parameters: userPrincipal - boolean |
getPermission | public static Permission getPermission(String className, String name, String actions) throws ClassNotFoundException(Code) | | instantiate a java.security.Permission subclass.
Parameters: className - class name Parameters: name - permission name Parameters: actions - actions name splitted by comma ',' a java.security.Permission subclass, or a java.security.BasicPermission subclass(which inherit java.security.Permission) throws: ClassNotFoundException - |
isCachesEnabled | public static boolean isCachesEnabled()(Code) | | |
setCachesEnabled | public static void setCachesEnabled(boolean cachesEnabled)(Code) | | |
|
|