站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

IdentityLoginModule - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.identity.auth
Class IdentityLoginModule

java.lang.Object
  extended byorg.jboss.security.auth.spi.AbstractServerLoginModule
      extended byorg.jboss.security.auth.spi.UsernamePasswordLoginModule
          extended byorg.jboss.portal.identity.auth.IdentityLoginModule
All Implemented Interfaces:
javax.security.auth.spi.LoginModule

public class IdentityLoginModule
extends org.jboss.security.auth.spi.UsernamePasswordLoginModule

A login module that uses the user module.


Field Summary
protected  java.lang.String additionalRole
           
protected  java.lang.String havingRole
           
protected  java.lang.String roleModuleJNDIName
           
protected  java.lang.String userModuleJNDIName
           
 
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
callbackHandler, log, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
 
Constructor Summary
IdentityLoginModule()
           
 
Method Summary
protected  RoleModule getRoleModule()
           
protected  java.security.acl.Group[] getRoleSets()
           
protected  UserModule getUserModule()
           
protected  java.lang.String getUsersPassword()
           
 void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)
           
protected  boolean validatePassword(java.lang.String inputPassword, java.lang.String expectedPassword)
           
 
Methods inherited from class org.jboss.security.auth.spi.UsernamePasswordLoginModule
createPasswordHash, getCredentials, getIdentity, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, login
 
Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
abort, commit, createGroup, createIdentity, getUseFirstPass, logout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userModuleJNDIName

protected java.lang.String userModuleJNDIName

roleModuleJNDIName

protected java.lang.String roleModuleJNDIName

additionalRole

protected java.lang.String additionalRole

havingRole

protected java.lang.String havingRole
Constructor Detail

IdentityLoginModule

public IdentityLoginModule()
Method Detail

initialize

public void initialize(javax.security.auth.Subject subject,
                       javax.security.auth.callback.CallbackHandler callbackHandler,
                       java.util.Map sharedState,
                       java.util.Map options)

getUserModule

protected UserModule getUserModule()
                            throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getRoleModule

protected RoleModule getRoleModule()
                            throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getUsersPassword

protected java.lang.String getUsersPassword()
                                     throws javax.security.auth.login.LoginException
Throws:
javax.security.auth.login.LoginException

validatePassword

protected boolean validatePassword(java.lang.String inputPassword,
                                   java.lang.String expectedPassword)

getRoleSets

protected java.security.acl.Group[] getRoleSets()
                                         throws javax.security.auth.login.LoginException
Throws:
javax.security.auth.login.LoginException