Class SAE
- java.lang.Object
-
- com.sun.identity.authentication.spi.AMLoginModule
-
- com.sun.identity.authentication.modules.sae.SAE
-
- All Implemented Interfaces:
LoginModule
public class SAE extends AMLoginModule
-
-
Field Summary
-
Fields inherited from class com.sun.identity.authentication.spi.AMLoginModule
amCache, auditor, currentState
-
-
Constructor Summary
Constructors Constructor Description SAE()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroyModuleState()cleanup module statePrincipalgetPrincipal()Returns the User Principalvoidinit(Subject subject, Map sharedState, Map options)Initialize this LoginModule.intprocess(Callback[] callbacks, int state)Validates the authentication credentials.-
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, nullifyUsedVars, 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)
Description copied from class:AMLoginModuleInitialize this LoginModule.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.
- 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.
-
process
public int process(Callback[] callbacks, int state) throws AuthLoginException
Validates the authentication credentials.- Specified by:
processin classAMLoginModule- Parameters:
callbacks- Callback[] for this Login statestate- Order of state. State order starts with 1.- Returns:
- ISAuthConstants.LOGIN_SUCCEED on login success
- Throws:
AuthLoginException- on failure.
-
getPrincipal
public Principal getPrincipal()
Returns the User Principal- Specified by:
getPrincipalin classAMLoginModule- Returns:
- SAEPrincipal
-
destroyModuleState
public void destroyModuleState()
cleanup module state- Overrides:
destroyModuleStatein classAMLoginModule
-
-