org.jboss.seam.security.jaas
Class JaasAuthenticator

java.lang.Object
  extended by 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

Constructor Summary
JaasAuthenticator()
           
 
Method Summary
 boolean 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 setJaasConfigName(String jaasConfigName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaasAuthenticator

public JaasAuthenticator()
Method Detail

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.