Class LDAP
- java.lang.Object
-
- com.sun.identity.authentication.spi.AMLoginModule
-
- com.sun.identity.authentication.modules.ldap.LDAP
-
- All Implemented Interfaces:
LoginModule
- Direct Known Subclasses:
AD
public class LDAP extends AMLoginModule
-
-
Field Summary
Fields Modifier and Type Field Description protected StringamAuthLDAPMapcurrentConfigprotected Debugdebugprotected LDAPAuthUtilsldapUtilprotected PrincipaluserPrincipalprotected StringvalidatedUserID-
Fields inherited from class com.sun.identity.authentication.spi.AMLoginModule
amCache, auditor
-
-
Constructor Summary
Constructors Constructor Description LDAP()TODO-JAVADOC
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroyModuleState()Cleans up state fields.PrincipalgetPrincipal()Returns principal.voidinit(Subject subject, Map sharedState, Map options)TODO-JAVADOCbooleaninitializeLDAP()TODO-JAVADOCvoidnullifyUsedVars()TODO-JAVADOCintprocess(Callback[] callbacks, int state)Abstract method must be implemented by each login module to control the flow of the login process.-
Methods inherited from class com.sun.identity.authentication.spi.AMLoginModule
abort, clearInfoText, commit, createIdentity, forceCallbacksInit, getAMIdentityRepository, getAttribute, getAuditEntryDetail, getAuthenticatedPrincipals, getAuthLevel, getCallback, getCallback, getCallbackHandler, getCurrentState, getFailCount, getHttpServletRequest, getHttpServletResponse, getInfoText, getLocale, getLoginLocale, getLoginState, getMaximumFailCount, getNewUserIDs, getNumberOfStates, getOrgProfile, getOrgServiceTemplate, getPwdKey, getRequestOrg, getServiceConfig, getSessionId, getSSOSession, getUserAliasList, getUserKey, getUserProfile, getUserSessionProperty, getUserSessions, incrementFailCount, initialize, isAccountLocked, isDynamicProfileCreationEnabled, isRequired, isSessionQuotaReached, isSharedStateEnabled, isSuperAdmin, isUseFirstPassEnabled, isValidUserEntry, login, logout, replaceCallback, replaceHeader, resetCallback, resetCurrentState, setAuthLevel, setFailureID, setForceCallbacksRead, setLoginFailureURL, setLoginSuccessURL, setModuleErrorTemplate, setOrg, setSharedStateEnabled, setUserAttributes, setUserSessionProperty, storeUsername, storeUsernamePasswd, substituteHeader, substituteInfoText, validatePassword, validateUserName
-
-
-
-
Method Detail
-
init
public void init(Subject subject, Map sharedState, Map options)
TODO-JAVADOC- Specified by:
initin classAMLoginModule- Parameters:
subject- - the Subject to be authenticated.sharedState- - state shared with other configured LoginModules.options- - options specified in the login Configuration for this particular LoginModule. It contains all the global and organization attribute configuration for this module. The key of the map is the attribute name (e.g.iplanet-am-auth-ldap-server) as String, the value is the value of the corresponding attribute as Set.
-
initializeLDAP
public boolean initializeLDAP() throws AuthLoginExceptionTODO-JAVADOC- Throws:
AuthLoginException
-
process
public int process(Callback[] callbacks, int state) throws AuthLoginException
Description copied from class:AMLoginModuleAbstract method must be implemented by each login module to control the flow of the login process.This method takes an array of sbumitted Callback, process them and decide the order of next state to go. Return -1 if the login is successful, return 0 if the LoginModule should be ignored.
- Specified by:
processin classAMLoginModule- Parameters:
callbacks- Callback[] for this Login statestate- Order of state. State order starts with 1.- Returns:
- order of next state. return -1 if authentication is successful, return 0 if the LoginModule should be ignored.
- Throws:
AuthLoginException
-
getPrincipal
public Principal getPrincipal()
Returns principal.- Specified by:
getPrincipalin classAMLoginModule- Returns:
- principal.
-
destroyModuleState
public void destroyModuleState()
Cleans up state fields.- Overrides:
destroyModuleStatein classAMLoginModule
-
nullifyUsedVars
public void nullifyUsedVars()
TODO-JAVADOC- Overrides:
nullifyUsedVarsin classAMLoginModule
-
-