org.jboss.seam.security.jaas
Class JaasAuthenticator

java.lang.Object
  extended by org.jboss.seam.security.BaseAuthenticator
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.seam.security.Authenticator
Authenticator.AuthenticationStatus
 
Constructor Summary
JaasAuthenticator()
           
 
Method Summary
 void authenticate()
           
 CallbackHandler createCallbackHandler()
          Creates a callback handler that can handle a standard username/password callback, using the credentials username and password properties
 String getJaasConfigName()
           
protected  LoginContext getLoginContext()
           
 void postAuthenticate()
           
 void setJaasConfigName(String jaasConfigName)
           
 
Methods inherited from class org.jboss.seam.security.BaseAuthenticator
getStatus, getUser, setStatus, setUser
 
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
 

Constructor Detail

JaasAuthenticator

public JaasAuthenticator()
Method Detail

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.