com.caucho.security
Class RoleMapManager

java.lang.Object
  extended by com.caucho.security.RoleMapManager

public class RoleMapManager
extends java.lang.Object

Manages role mapping


Method Summary
 void addRoleMap(RoleMap roleMap)
          Adds a role map.
static RoleMapManager create()
          Returns the current manager, creating if necessary.
static RoleMapManager getCurrent()
          Returns the current manager.
 java.lang.Boolean isUserInRole(java.lang.String role, java.security.Principal user)
          Checks for role matching.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCurrent

public static RoleMapManager getCurrent()
Returns the current manager.


create

public static RoleMapManager create()
Returns the current manager, creating if necessary.


addRoleMap

public void addRoleMap(RoleMap roleMap)
Adds a role map.


isUserInRole

public java.lang.Boolean isUserInRole(java.lang.String role,
                                      java.security.Principal user)
Checks for role matching.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object