org.jboss.resource.security
Class AbstractPasswordCredentialLoginModule

java.lang.Object
  extended by org.jboss.security.auth.spi.AbstractServerLoginModule
      extended by org.jboss.resource.security.AbstractPasswordCredentialLoginModule
All Implemented Interfaces:
LoginModule
Direct Known Subclasses:
CallerIdentityLoginModule, ConfiguredIdentityLoginModule, JaasSecurityDomainIdentityLoginModule, SecureIdentityLoginModule

public abstract class AbstractPasswordCredentialLoginModule
extends org.jboss.security.auth.spi.AbstractServerLoginModule

A base login module that provides access to the ManagedConnectionFactory needed by the PasswordCredential.

Version:
$Revision: 1.9.4.1 $
Author:
David Jencks, Scott.Stark@jboss.org
See Also:
PasswordCredential

Field Summary
 
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
callbackHandler, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
 
Constructor Summary
AbstractPasswordCredentialLoginModule()
           
 
Method Summary
protected  javax.resource.spi.ManagedConnectionFactory getMcf()
           
protected  javax.management.MBeanServer getServer()
           
 void initialize(Subject subject, CallbackHandler handler, Map sharedState, Map options)
           
 boolean login()
          Return false if there is no mcf, else return super.login().
 boolean logout()
           
protected  void removeCredentials()
          This removes the javax.security.auth.login.name and javax.security.auth.login.password settings from the sharteState map along with any PasswordCredential found in the PrivateCredentials set
 
Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
abort, commit, createGroup, createIdentity, getIdentity, getRoleSets, getUnauthenticatedIdentity, getUseFirstPass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPasswordCredentialLoginModule

public AbstractPasswordCredentialLoginModule()
Method Detail

initialize

public void initialize(Subject subject,
                       CallbackHandler handler,
                       Map sharedState,
                       Map options)
Specified by:
initialize in interface LoginModule
Overrides:
initialize in class org.jboss.security.auth.spi.AbstractServerLoginModule

login

public boolean login()
              throws LoginException
Return false if there is no mcf, else return super.login(). Override to provide custom authentication.

Specified by:
login in interface LoginModule
Overrides:
login in class org.jboss.security.auth.spi.AbstractServerLoginModule
Returns:
false if there is no mcf, else return super.login().
Throws:
LoginException - if an error occurs

logout

public boolean logout()
               throws LoginException
Specified by:
logout in interface LoginModule
Overrides:
logout in class org.jboss.security.auth.spi.AbstractServerLoginModule
Throws:
LoginException

getMcf

protected javax.resource.spi.ManagedConnectionFactory getMcf()

getServer

protected javax.management.MBeanServer getServer()

removeCredentials

protected void removeCredentials()
This removes the javax.security.auth.login.name and javax.security.auth.login.password settings from the sharteState map along with any PasswordCredential found in the PrivateCredentials set



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