public class LDAP extends AMLoginModule
Modifier and Type | Field and Description |
---|---|
protected String |
amAuthLDAP |
Map |
currentConfig |
protected Debug |
debug |
protected LDAPAuthUtils |
ldapUtil |
protected Principal |
userPrincipal |
protected String |
validatedUserID |
amCache, auditor
Constructor and Description |
---|
LDAP()
TODO-JAVADOC
|
Modifier and Type | Method and Description |
---|---|
void |
destroyModuleState()
Cleans up state fields.
|
Principal |
getPrincipal()
Returns principal.
|
void |
init(Subject subject,
Map sharedState,
Map options)
TODO-JAVADOC
|
boolean |
initializeLDAP()
TODO-JAVADOC
|
void |
nullifyUsedVars()
TODO-JAVADOC
|
int |
process(Callback[] callbacks,
int state)
Abstract method must be implemented by each login module to
control the flow of the login process.
|
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
protected String validatedUserID
protected LDAPAuthUtils ldapUtil
public Map currentConfig
protected Debug debug
protected String amAuthLDAP
protected Principal userPrincipal
public void init(Subject subject, Map sharedState, Map options)
init
in class AMLoginModule
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.public boolean initializeLDAP() throws AuthLoginException
AuthLoginException
public int process(Callback[] callbacks, int state) throws AuthLoginException
AMLoginModule
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.
process
in class AMLoginModule
callbacks
- Callback[] for this Login statestate
- Order of state. State order starts with 1.AuthLoginException
public Principal getPrincipal()
getPrincipal
in class AMLoginModule
public void destroyModuleState()
destroyModuleState
in class AMLoginModule
public void nullifyUsedVars()
nullifyUsedVars
in class AMLoginModule
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.