public class DetectIdentitySwitch extends AbstractAuthenticationAction
SubjectCanonicalizationContext).
On a mismatch it destroys a pre-existing session and clears AuthenticationContext
and SessionContext state such that no trace of its impact on the contexts remains, and
signals the event.
An error interacting with the session layer will result in an EventIds.IO_ERROR event.
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX, EventIds.IO_ERROR, AuthnEventIds.IDENTITY_SWITCH| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,SubjectCanonicalizationContext> |
c14nContextLookupStrategy
Lookup function for SubjectCanonicalizationContext.
|
private Logger |
log
Class logger.
|
private String |
newPrincipalName
A newly established principal name to check.
|
private com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,SessionContext> |
sessionContextLookupStrategy
Lookup function for SessionContext.
|
private SessionContext |
sessionCtx
SessionContext to operate on.
|
private SessionManager |
sessionManager
SessionManager.
|
| Constructor and Description |
|---|
DetectIdentitySwitch()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
protected void |
doInitialize() |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
void |
setSessionContextLookupStrategy(com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,SessionContext> strategy)
Set the lookup strategy for the SessionContext to access.
|
void |
setSessionManager(SessionManager manager)
Set the
SessionManager to use. |
void |
setSubjectCanonicalizationContextLookupStrategy(com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,SubjectCanonicalizationContext> strategy)
Set the lookup strategy for the SubjectCanonicalizationContext to access.
|
doExecute, doPreExecute, setLookupStrategydoExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, initialize, isDestroyed, isInitialized@NonnullAfterInit private SessionManager sessionManager
@Nonnull private com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,SessionContext> sessionContextLookupStrategy
@Nonnull private com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,SubjectCanonicalizationContext> c14nContextLookupStrategy
@Nullable private SessionContext sessionCtx
public void setSessionManager(@Nonnull SessionManager manager)
SessionManager to use.manager - session manager to usepublic void setSessionContextLookupStrategy(@Nonnull com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,SessionContext> strategy)
strategy - lookup strategypublic void setSubjectCanonicalizationContextLookupStrategy(@Nonnull com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,SubjectCanonicalizationContext> strategy)
strategy - lookup strategyprotected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprotected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doPreExecute in class AbstractAuthenticationActionprotected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doExecute in class AbstractAuthenticationActionCopyright © 1999–2014. All rights reserved.