Class PrepareAgentResponse
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.sp.profile.AbstractAgentRequestAction
net.shibboleth.sp.profile.AbstractAgentAction
net.shibboleth.sp.profile.AbstractApplicationAction
net.shibboleth.sp.profile.AbstractTokenConsumerResponseAction
net.shibboleth.sp.saml.saml2.profile.impl.PrepareAgentResponse
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
SAML-specific subclass of token consumer response action.
The base class does all the work, the subclass simply overrides the methods needed to express SAML-specific RelayState and session data behavior.
The session data initially will consist of some serialized opaque blob containing
enough information to process logout requests in the future, the SessionIndex and
the NameID. In the absence of an identifier, no data is neeeded since logout
is impossible, so null can be returned.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.slf4j.LoggerClass logger.static final StringParameter for accessing NameID from opaque data.private SAMLTokenContextContext to operate on.Strategy used to look upSAMLTokenContextto operate on. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoPreExecute(ProfileRequestContext profileRequestContext) protected DDFgetSessionData(ProfileRequestContext profileRequestContext) protected InstantgetSessionNotOnOrAfter(ProfileRequestContext profileRequestContext) voidSet the strategy used to return theSAMLTokenContextfor input.Methods inherited from class net.shibboleth.sp.profile.AbstractTokenConsumerResponseAction
doExecute, setAttributeContextLookupStrategy, setStateDataContextLookupStrategyMethods inherited from class net.shibboleth.sp.profile.AbstractApplicationAction
ensureApplication, getApplicationMethods inherited from class net.shibboleth.sp.profile.AbstractAgentAction
ensureAgent, getAgentMethods inherited from class net.shibboleth.sp.profile.AbstractAgentRequestAction
ensureAgentRequestContext, getAgentRequestContext, setAgentRequestContextLookupStrategyMethods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
NAMEID_PARAM
Parameter for accessing NameID from opaque data.- See Also:
-
log
@Nonnull private org.slf4j.Logger logClass logger. -
samlTokenContextLookupStrategy
Strategy used to look upSAMLTokenContextto operate on. -
samlTokenContext
Context to operate on.
-
-
Constructor Details
-
PrepareAgentResponse
public PrepareAgentResponse()Constructor.
-
-
Method Details
-
setSAMLTokenContextLookupStrategy
public void setSAMLTokenContextLookupStrategy(@Nonnull Function<ProfileRequestContext, SAMLTokenContext> strategy) Set the strategy used to return theSAMLTokenContextfor input.- Parameters:
strategy- lookup strategy
-
doPreExecute
- Overrides:
doPreExecutein classAbstractTokenConsumerResponseAction
-
getSessionData
- Specified by:
getSessionDatain classAbstractTokenConsumerResponseAction
-
getSessionNotOnOrAfter
@Nullable protected Instant getSessionNotOnOrAfter(@Nonnull ProfileRequestContext profileRequestContext) - Overrides:
getSessionNotOnOrAfterin classAbstractTokenConsumerResponseAction
-