Class AddLogoutRequest
java.lang.Object
net.shibboleth.utilities.java.support.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 IdentifierGenerationStrategy
The generator to use.Strategy used to locate theIdentifierGenerationStrategy
to use.private boolean
Include SessionIndex in the request?private String
EntityID to populate into Issuer element.private Function<ProfileRequestContext,
String> Strategy used to obtain the response issuer value.private org.slf4j.Logger
Class logger.Logout propagation context lookup strategy.private boolean
Overwrite an existing message?private SAML2SPSession
TheSAML2SPSession
to base the inbound context on. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExecute
(ProfileRequestContext profileRequestContext) protected boolean
doPreExecute
(ProfileRequestContext profileRequestContext) void
setIdentifierGeneratorLookupStrategy
(Function<ProfileRequestContext, IdentifierGenerationStrategy> strategy) Set the strategy used to locate theIdentifierGenerationStrategy
to use.void
setIncludeSessionIndex
(boolean flag) Set whether to include a SessionIndex in the request.void
Set the strategy used to locate the issuer value to use.void
setLogoutPropagationContextLookupStrategy
(Function<ProfileRequestContext, LogoutPropagationContext> strategy) Set the logout propagation context lookup strategy.void
setOverwriteExisting
(boolean flag) Set whether to overwrite an existing message.Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.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 theIdentifierGenerationStrategy
to 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
TheSAML2SPSession
to 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 theIdentifierGenerationStrategy
to 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:
doPreExecute
in classAbstractProfileAction
-
doExecute
- Overrides:
doExecute
in classAbstractProfileAction
-