org.jboss.messaging.core.security.impl
Class JAASSecurityManager

java.lang.Object
  extended by org.jboss.messaging.core.security.impl.JAASSecurityManager
All Implemented Interfaces:
JBMSecurityManager

public class JAASSecurityManager
extends java.lang.Object
implements JBMSecurityManager

This implementation delegates to the a real JAAS Authentication Manager and will typically be used within an appserver and it up via jndi.

Author:
Andy Taylor

Constructor Summary
JAASSecurityManager()
           
 
Method Summary
 void setAuthenticationManager(org.jboss.security.AuthenticationManager authenticationManager)
           
 void setRealmMapping(org.jboss.security.RealmMapping realmMapping)
           
 void setSecurityDomainName(java.lang.String securityDomainName)
           
 void start()
          lifecycle method, needs to be called
 boolean validateUser(java.lang.String user, java.lang.String password)
          is this a valid user.
 boolean validateUserAndRole(java.lang.String user, java.lang.String password, java.util.HashSet<Role> roles, CheckType checkType)
          is this a valid user and do they have the correct role
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAASSecurityManager

public JAASSecurityManager()
Method Detail

validateUser

public boolean validateUser(java.lang.String user,
                            java.lang.String password)
Description copied from interface: JBMSecurityManager
is this a valid user.

Specified by:
validateUser in interface JBMSecurityManager
Parameters:
user - the user
password - the users password
Returns:
true if a valid user

validateUserAndRole

public boolean validateUserAndRole(java.lang.String user,
                                   java.lang.String password,
                                   java.util.HashSet<Role> roles,
                                   CheckType checkType)
Description copied from interface: JBMSecurityManager
is this a valid user and do they have the correct role

Specified by:
validateUserAndRole in interface JBMSecurityManager
Parameters:
user - the user
password - the users password
roles - the roles the user has
checkType - the type of check to perform
Returns:
true if the user is valid and they have the correct roles

setRealmMapping

public void setRealmMapping(org.jboss.security.RealmMapping realmMapping)

setAuthenticationManager

public void setAuthenticationManager(org.jboss.security.AuthenticationManager authenticationManager)

start

public void start()
           throws java.lang.Exception
lifecycle method, needs to be called

Throws:
java.lang.Exception

setSecurityDomainName

public void setSecurityDomainName(java.lang.String securityDomainName)


Copyright © 2006 JBoss Inc. All Rights Reserved.