public class Application extends AMLoginModule
Use IDToken0
to specify application name and
IDToken1
to specify secret.
(Old usage : Login.Token0
to specify application name and
Login.Token1
to specify secret.) For example:
"module=Application&IDToken0=UrlAccessAgent&IDToken1=secret"OR
"module=Application&IDToken0=Old usage:&IDToken1= "
"module=Application&Login.Token0=UrlAccessAgent&Login.Token1=secret"
amCache, auditor, currentState
Constructor and Description |
---|
Application() |
Modifier and Type | Method and Description |
---|---|
void |
destroyModuleState()
This method should be overridden by each login module
to destroy dispensable state fields.
|
Principal |
getPrincipal()
Returns Principal for the authenticated user.
|
void |
init(Subject subject,
Map sharedState,
Map options)
Initialize this LoginModule.
|
void |
nullifyUsedVars()
This method should be overridden by each login module
to do some garbage collection work after the module
process is done.
|
int |
process(Callback[] callbacks,
int state)
Implementation of
AMLoginModule abstract method. |
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
public void init(Subject subject, Map sharedState, Map options)
AMLoginModule
This is an abstract method, must be implemented by user's Login Module to initialize this LoginModule with the relevant information. If this LoginModule does not understand any of the data stored in sharedState or options parameters, they can be ignored.
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 int process(Callback[] callbacks, int state) throws AuthLoginException
AMLoginModule
abstract method.
Refer to AMLoginModule
for method syntax.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()
AMLoginModule
destroyModuleState
in class AMLoginModule
public void nullifyUsedVars()
AMLoginModule
nullifyUsedVars
in class AMLoginModule
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.