public class AddLogoutRequest
extends org.opensaml.profile.action.AbstractProfileAction
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.
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_MSG_CTX, EventIds.INVALID_PROFILE_CTX, EventIds.MESSAGE_PROC_ERROR| Modifier and Type | Field and Description |
|---|---|
private IdentifierGenerationStrategy |
idGenerator
The generator to use.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,IdentifierGenerationStrategy> |
idGeneratorLookupStrategy
Strategy used to locate the
IdentifierGenerationStrategy to use. |
private boolean |
includeSessionIndex
Include SessionIndex in the request?
|
private String |
issuerId
EntityID to populate into Issuer element.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,String> |
issuerLookupStrategy
Strategy used to obtain the response issuer value.
|
private org.slf4j.Logger |
log
Class logger.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.session.context.LogoutPropagationContext> |
logoutPropContextLookupStrategy
Logout propagation context lookup strategy.
|
private boolean |
overwriteExisting
Overwrite an existing message?
|
private SAML2SPSession |
saml2Session
The
SAML2SPSession to base the inbound context on. |
| Constructor and Description |
|---|
AddLogoutRequest()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
void |
setIdentifierGeneratorLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,IdentifierGenerationStrategy> strategy)
Set the strategy used to locate the
IdentifierGenerationStrategy to use. |
void |
setIncludeSessionIndex(boolean flag)
Set whether to include a SessionIndex in the request.
|
void |
setIssuerLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
Set the strategy used to locate the issuer value to use.
|
void |
setLogoutPropagationContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.session.context.LogoutPropagationContext> strategy)
Set the logout propagation context lookup strategy.
|
void |
setOverwriteExisting(boolean flag)
Set whether to overwrite an existing message.
|
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private org.slf4j.Logger log
private boolean overwriteExisting
private boolean includeSessionIndex
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,IdentifierGenerationStrategy> idGeneratorLookupStrategy
IdentifierGenerationStrategy to use.@Nullable private Function<org.opensaml.profile.context.ProfileRequestContext,String> issuerLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.session.context.LogoutPropagationContext> logoutPropContextLookupStrategy
@Nullable private IdentifierGenerationStrategy idGenerator
@Nullable private SAML2SPSession saml2Session
SAML2SPSession to base the inbound context on.public void setOverwriteExisting(boolean flag)
flag - flag to setpublic void setIncludeSessionIndex(boolean flag)
flag - flag to setpublic void setIdentifierGeneratorLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,IdentifierGenerationStrategy> strategy)
IdentifierGenerationStrategy to use.strategy - lookup strategypublic void setIssuerLookupStrategy(@Nullable Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
strategy - lookup strategypublic void setLogoutPropagationContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.session.context.LogoutPropagationContext> strategy)
strategy - lookup strategyprotected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doPreExecute in class org.opensaml.profile.action.AbstractProfileActionprotected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doExecute in class org.opensaml.profile.action.AbstractProfileActionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.