org.jboss.security
Class CacheRealmMapping
java.lang.Object
|
+--org.jboss.security.CacheRealmMapping
- All Implemented Interfaces:
- RealmMapping
- public class CacheRealmMapping
- extends java.lang.Object
- implements RealmMapping
CacheRealmMapping has two purposes (one of them currently unimplemented.)
It allows beans to have mappings for multiple security realms, and it
(eventually) will cache data from realms that allow it.
- Author:
- Daniel O'Connor docodan@nycap.rr.com
- See Also:
EJBSecurityManager
Method Summary |
void |
addRealmMapping(RealmMapping realmMapping)
|
boolean |
doesUserHaveRole(java.security.Principal principal,
java.util.Set roleNames)
This method checks if the given ("original") Principal has
at least on of the roles in the given set. |
java.security.Principal |
getPrincipal(java.security.Principal principal)
This method should return Principal for the bean that may differ
from the original Principal in the operational environment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheRealmMapping
public CacheRealmMapping()
getPrincipal
public java.security.Principal getPrincipal(java.security.Principal principal)
- Description copied from interface:
RealmMapping
- This method should return Principal for the bean that may differ
from the original Principal in the operational environment.
- Specified by:
getPrincipal
in interface RealmMapping
addRealmMapping
public void addRealmMapping(RealmMapping realmMapping)
doesUserHaveRole
public boolean doesUserHaveRole(java.security.Principal principal,
java.util.Set roleNames)
- Description copied from interface:
RealmMapping
- This method checks if the given ("original") Principal has
at least on of the roles in the given set.
- Specified by:
doesUserHaveRole
in interface RealmMapping
Copyright © 2000 The jBoss Organization. All Rights Reserved.