站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 connector API Documentation 英文版文档

AbstractPasswordCredentialLoginModule (JBoss Connector API) - JBoss 3.2.7 connector API Documentation 英文版文档


org.jboss.resource.security
Class AbstractPasswordCredentialLoginModule

java.lang.Object
  extended byorg.jboss.security.auth.spi.AbstractServerLoginModule
      extended byorg.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.3.2.7 $
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)

login

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

Returns:
false if there is no mcf, else return super.login().
Throws:
LoginException - if an error occurs

logout

public boolean logout()
               throws LoginException
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.