org.jboss.seam.security.jaas
Class JaasAuthenticator
java.lang.Object
org.jboss.seam.security.jaas.JaasAuthenticator
- All Implemented Interfaces:
- Authenticator
@RequestScoped
@Alternative
public class JaasAuthenticator
- extends Object
- 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 boolean 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)
Copyright © 2010 Seam Framework. All Rights Reserved.