org.jboss.security
Class DatabaseRealmMapping

java.lang.Object
  |
  +--org.jboss.security.DatabaseRealmMapping
All Implemented Interfaces:
RealmMapping

public class DatabaseRealmMapping
extends java.lang.Object
implements RealmMapping

Author:
Daniel O'Connor docodan@nycap.rr.com
See Also:
EJBSecurityManager

Constructor Summary
DatabaseRealmMapping()
           
 
Method Summary
 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
 

Constructor Detail

DatabaseRealmMapping

public DatabaseRealmMapping()
Method Detail

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

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.