org.jboss.security
Class ClientLoginModule

java.lang.Object
  extended by org.jboss.security.ClientLoginModule
All Implemented Interfaces:
LoginModule

public class ClientLoginModule
extends Object
implements LoginModule

A simple implementation of LoginModule for use by JBoss clients for the establishment of the caller identity and credentials. This simply sets the SecurityAssociation principal to the value of the NameCallback filled in by the CallbackHandler, and the SecurityAssociation credential to the value of the PasswordCallback filled in by the CallbackHandler. It has the following options:

Author:
Oleg Nitz, Scott.Stark@jboss.org

Constructor Summary
ClientLoginModule()
           
 
Method Summary
 boolean abort()
          Method to abort the authentication process (phase 2).
 boolean commit()
          Method to commit the authentication process (phase 2).
 void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
          Initialize this LoginModule.
 boolean login()
          Method to authenticate a Subject (phase 1).
 boolean logout()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientLoginModule

public ClientLoginModule()
Method Detail

initialize

public void initialize(Subject subject,
                       CallbackHandler callbackHandler,
                       Map sharedState,
                       Map options)
Initialize this LoginModule. This checks for the options: multi-threaded restore-login-identity password-stacking

Specified by:
initialize in interface LoginModule

login

public boolean login()
              throws LoginException
Method to authenticate a Subject (phase 1).

Specified by:
login in interface LoginModule
Throws:
LoginException

commit

public boolean commit()
               throws LoginException
Method to commit the authentication process (phase 2).

Specified by:
commit in interface LoginModule
Throws:
LoginException

abort

public boolean abort()
              throws LoginException
Method to abort the authentication process (phase 2).

Specified by:
abort in interface LoginModule
Throws:
LoginException

logout

public boolean logout()
               throws LoginException
Specified by:
logout in interface LoginModule
Throws:
LoginException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.