org.jboss.seam.security.jaas
Class JaasAuthenticator
java.lang.Object
org.jboss.seam.security.BaseAuthenticator
org.jboss.seam.security.jaas.JaasAuthenticator
- All Implemented Interfaces:
- Authenticator
@Named
@RequestScoped
public class JaasAuthenticator
- extends BaseAuthenticator
- implements 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaasAuthenticator
public JaasAuthenticator()
authenticate
public void authenticate()
- Specified by:
authenticate
in interface 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 Authenticator
- Overrides:
postAuthenticate
in class BaseAuthenticator
Copyright © 2011 Seam Framework. All Rights Reserved.