org.jboss.security
Class JaasSecurityManager

java.lang.Object
  |
  +--org.jboss.security.JaasSecurityManager
All Implemented Interfaces:
EJBSecurityManager, RealmMapping, java.io.Serializable

public class JaasSecurityManager
extends java.lang.Object
implements EJBSecurityManager, RealmMapping, java.io.Serializable

The EJBSecurityManager is responsible for validating credentials associated with principals. Right now it is a "demo" that just ensures name == credential

Author:
Oleg Nitz
See Also:
EJBSecurityManager, Serialized Form

Constructor Summary
JaasSecurityManager(java.lang.String smName)
           
 
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.
 boolean isValid(java.security.Principal principal, java.lang.Object credential)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaasSecurityManager

public JaasSecurityManager(java.lang.String smName)
Parameters:
smName - The name of the security manager
Method Detail

isValid

public boolean isValid(java.security.Principal principal,
                       java.lang.Object credential)
Specified by:
isValid in interface EJBSecurityManager

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.