Class AddLogoutRequest
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
net.shibboleth.idp.saml.session.impl.AddLogoutRequest
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction
Action that creates a
LogoutRequest based on an SAML2SPSession in a
LogoutPropagationContext and sets it as the message returned by
InOutOperationContext.getOutboundMessageContext().
If an issuer value is returned via a lookup strategy, then it's set as the Issuer of the message.
- Event:
EventIds.PROCEED_EVENT_ID,EventIds.INVALID_MSG_CTX,EventIds.INVALID_PROFILE_CTX,EventIds.MESSAGE_PROC_ERROR- Postcondition:
- ProfileRequestContext.getOutboundMessageContext().getMessage() != null
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IdentifierGenerationStrategyThe generator to use.Strategy used to locate theIdentifierGenerationStrategyto use.private booleanInclude SessionIndex in the request?private StringEntityID to populate into Issuer element.private Function<ProfileRequestContext,String> Strategy used to obtain the response issuer value.private org.slf4j.LoggerClass logger.Logout propagation context lookup strategy.private booleanOverwrite an existing message?private SAML2SPSessionTheSAML2SPSessionto base the inbound context on. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidsetIdentifierGeneratorLookupStrategy(Function<ProfileRequestContext, IdentifierGenerationStrategy> strategy) Set the strategy used to locate theIdentifierGenerationStrategyto use.voidsetIncludeSessionIndex(boolean flag) Set whether to include a SessionIndex in the request.voidSet the strategy used to locate the issuer value to use.voidsetLogoutPropagationContextLookupStrategy(Function<ProfileRequestContext, LogoutPropagationContext> strategy) Set the logout propagation context lookup strategy.voidsetOverwriteExisting(boolean flag) Set whether to overwrite an existing message.Methods 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
-
log
@Nonnull private org.slf4j.Logger logClass logger. -
overwriteExisting
private boolean overwriteExistingOverwrite an existing message? -
includeSessionIndex
private boolean includeSessionIndexInclude SessionIndex in the request? -
idGeneratorLookupStrategy
@Nonnull private Function<ProfileRequestContext,IdentifierGenerationStrategy> idGeneratorLookupStrategyStrategy used to locate theIdentifierGenerationStrategyto use. -
issuerLookupStrategy
Strategy used to obtain the response issuer value. -
logoutPropContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,LogoutPropagationContext> logoutPropContextLookupStrategyLogout propagation context lookup strategy. -
idGenerator
The generator to use. -
saml2Session
TheSAML2SPSessionto base the inbound context on. -
issuerId
EntityID to populate into Issuer element.
-
-
Constructor Details
-
AddLogoutRequest
public AddLogoutRequest()Constructor.
-
-
Method Details
-
setOverwriteExisting
public void setOverwriteExisting(boolean flag) Set whether to overwrite an existing message.- Parameters:
flag- flag to set
-
setIncludeSessionIndex
public void setIncludeSessionIndex(boolean flag) Set whether to include a SessionIndex in the request.- Parameters:
flag- flag to set
-
setIdentifierGeneratorLookupStrategy
public void setIdentifierGeneratorLookupStrategy(@Nonnull Function<ProfileRequestContext, IdentifierGenerationStrategy> strategy) Set the strategy used to locate theIdentifierGenerationStrategyto use.- Parameters:
strategy- lookup strategy
-
setIssuerLookupStrategy
Set the strategy used to locate the issuer value to use.- Parameters:
strategy- lookup strategy
-
setLogoutPropagationContextLookupStrategy
public void setLogoutPropagationContextLookupStrategy(@Nonnull Function<ProfileRequestContext, LogoutPropagationContext> strategy) Set the logout propagation context lookup strategy.- Parameters:
strategy- lookup strategy
-
doPreExecute
- Overrides:
doPreExecutein classAbstractProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-