org.jboss.security
Class SimpleRealmMapping

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

public class SimpleRealmMapping
extends java.lang.Object
implements RealmMapping

SimpleRealmMapping removes the level of indirection in the specification between roles and principals/groups for the standard "deploy without configuring"

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

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

SimpleRealmMapping

public SimpleRealmMapping()
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.