|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.core.security.impl.JAASSecurityManager
public class JAASSecurityManager
This implementation delegates to the a real JAAS Authentication Manager and will typically be used within an appserver and it up via jndi.
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 |
---|
public JAASSecurityManager()
Method Detail |
---|
public boolean validateUser(java.lang.String user, java.lang.String password)
JBMSecurityManager
validateUser
in interface JBMSecurityManager
user
- the userpassword
- the users password
public boolean validateUserAndRole(java.lang.String user, java.lang.String password, java.util.HashSet<Role> roles, CheckType checkType)
JBMSecurityManager
validateUserAndRole
in interface JBMSecurityManager
user
- the userpassword
- the users passwordroles
- the roles the user hascheckType
- the type of check to perform
public void setRealmMapping(org.jboss.security.RealmMapping realmMapping)
public void setAuthenticationManager(org.jboss.security.AuthenticationManager authenticationManager)
public void start() throws java.lang.Exception
java.lang.Exception
public void setSecurityDomainName(java.lang.String securityDomainName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |