Class Membership
- java.lang.Object
-
- com.sun.identity.authentication.spi.AMLoginModule
-
- com.sun.identity.authentication.modules.membership.Membership
-
- All Implemented Interfaces:
LoginModule
public class Membership extends AMLoginModule
-
-
Field Summary
-
Fields inherited from class com.sun.identity.authentication.spi.AMLoginModule
amCache, auditor, currentState
-
-
Constructor Summary
Constructors Constructor Description Membership()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroyModuleState()Destroy the module statePrincipalgetPrincipal()ReturnsPrincipal.voidinit(Subject subject, Map sharedState, Map options)Initializes thisLoginModule.voidnullifyUsedVars()Set all the used variables to nullintprocess(Callback[] callbacks, int state)Takes an array of submittedCallback, process them and decide the order of next state to go.-
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)
Initializes thisLoginModule.- Specified by:
initin classAMLoginModule- Parameters:
subject- theSubjectto be authenticated.sharedState- sharedLoginModulestate.options- options specified in the login.Configurationfor this particularLoginModule.
-
process
public int process(Callback[] callbacks, int state) throws AuthLoginException
Takes an array of submittedCallback, process them and decide the order of next state to go. Return STATE_SUCCEED if the login is successful, return STATE_FAILED if the LoginModule should be ignored.- Specified by:
processin classAMLoginModule- Parameters:
callbacks- an array ofCallback for this Login statestate- order of state. State order starts with 1.- Returns:
- int order of next state. Return STATE_SUCCEED if authentication is successful, return STATE_FAILED if the LoginModule should be ignored.
- Throws:
AuthLoginException
-
getPrincipal
public Principal getPrincipal()
ReturnsPrincipal.- Specified by:
getPrincipalin classAMLoginModule- Returns:
Principal
-
destroyModuleState
public void destroyModuleState()
Destroy the module state- Overrides:
destroyModuleStatein classAMLoginModule
-
nullifyUsedVars
public void nullifyUsedVars()
Set all the used variables to null- Overrides:
nullifyUsedVarsin classAMLoginModule
-
-