Class Cert
- java.lang.Object
-
- com.sun.identity.authentication.spi.AMLoginModule
-
- com.sun.identity.authentication.modules.cert.Cert
-
- All Implemented Interfaces:
LoginModule
public class Cert extends AMLoginModule
-
-
Field Summary
-
Fields inherited from class com.sun.identity.authentication.spi.AMLoginModule
amCache, auditor, currentState
-
-
Constructor Summary
Constructors Constructor Description Cert()Default module constructor does nothing
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroyModuleState()Destroy the state of moduleX509CertificategetCertificate()Return value of CertificateStringgetChkAttrCRL()Return value of Attribute Name for CRL checkingDebuggetDebug()Return value of Debug object for this modulePrincipalgetPrincipal()Abstract method must be implemeted by each login module to get the user PrincipalStringgetStartSearchLoc()Return value of LDAP Search loc for directory serverStringgetUriParamsCRL()Return value of URI parameter for getting CRLvoidinit(Subject subject, Map sharedState, Map options)Initialize modulevoidnullifyUsedVars()Initialize all member variables as nullintprocess(Callback[] callbacks, int state)Process Certificate based auth request-
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)
Initialize module- Specified by:
initin classAMLoginModule- Parameters:
subject- for authsharedState- with auth frameworkoptions- for auth
-
process
public int process(Callback[] callbacks, int state) throws AuthLoginException
Process Certificate based auth request- Specified by:
processin classAMLoginModule- Parameters:
callbacks- for authstate- with auth framework- Returns:
- proper jaas state for auth framework
- Throws:
AuthLoginException- if auth fails
-
getPrincipal
public Principal getPrincipal()
Description copied from class:AMLoginModuleAbstract method must be implemeted by each login module to get the user Principal- Specified by:
getPrincipalin classAMLoginModule- Returns:
- Principal
-
getCertificate
public X509Certificate getCertificate()
Return value of Certificate- Returns:
- X509Certificate for auth
-
getChkAttrCRL
public String getChkAttrCRL()
Return value of Attribute Name for CRL checking- Returns:
- value for attribute name to search crl from ldap store
-
getDebug
public Debug getDebug()
Return value of Debug object for this module- Returns:
- debug
-
getUriParamsCRL
public String getUriParamsCRL()
Return value of URI parameter for getting CRL- Returns:
- value of URI parameter for getting CRL
-
getStartSearchLoc
public String getStartSearchLoc()
Return value of LDAP Search loc for directory server- Returns:
- value of LDAP Search loc for directory server
-
destroyModuleState
public void destroyModuleState()
Destroy the state of module- Overrides:
destroyModuleStatein classAMLoginModule
-
nullifyUsedVars
public void nullifyUsedVars()
Initialize all member variables as null- Overrides:
nullifyUsedVarsin classAMLoginModule
-
-