org.jboss.seam.security.jaas
Class JaasAuthenticator
java.lang.Object
org.jboss.seam.security.BaseAuthenticator
org.jboss.seam.security.jaas.JaasAuthenticator
- All Implemented Interfaces:
- org.jboss.seam.security.Authenticator
@Named
@RequestScoped
public class JaasAuthenticator
- extends BaseAuthenticator
- implements org.jboss.seam.security.Authenticator
An authenticator for authenticating with JAAS. The jaasConfigName property
_must_ be configured to point to a valid JAAS configuration name, typically
defined in a file called login-config.xml in the application server.
- Author:
- Shane Bryzak
| Nested classes/interfaces inherited from interface org.jboss.seam.security.Authenticator |
org.jboss.seam.security.Authenticator.AuthenticationStatus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.seam.security.Authenticator |
getStatus, getUser |
JaasAuthenticator
public JaasAuthenticator()
authenticate
public void authenticate()
- Specified by:
authenticate in interface org.jboss.seam.security.Authenticator
getLoginContext
protected LoginContext getLoginContext()
throws LoginException
- Throws:
LoginException
createCallbackHandler
public CallbackHandler createCallbackHandler()
- Creates a callback handler that can handle a standard username/password
callback, using the credentials username and password properties
getJaasConfigName
public String getJaasConfigName()
setJaasConfigName
public void setJaasConfigName(String jaasConfigName)
postAuthenticate
public void postAuthenticate()
- Specified by:
postAuthenticate in interface org.jboss.seam.security.Authenticator- Overrides:
postAuthenticate in class BaseAuthenticator
Copyright © 2011 Seam Framework. All Rights Reserved.