Class AddResponseShell
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.profile.action.AbstractProfileAction
-
- org.opensaml.saml.saml1.profile.impl.AddResponseShell
-
- All Implemented Interfaces:
net.shibboleth.utilities.java.support.component.Component,net.shibboleth.utilities.java.support.component.DestructableComponent,net.shibboleth.utilities.java.support.component.InitializableComponent,org.opensaml.profile.action.ProfileAction
public class AddResponseShell extends org.opensaml.profile.action.AbstractProfileActionAction that creates an emptyResponse, and sets it as the message returned byInOutOperationContext.getOutboundMessageContext().The
Statusis set toStatusCode.SUCCESSas a default assumption, and this can be overridden by subsequent actions.- Event:
EventIds.PROCEED_EVENT_ID,EventIds.INVALID_MSG_CTX,EventIds.INVALID_PROFILE_CTX- Postcondition:
- ProfileRequestContext.getOutboundMessageContext().getMessage() != null
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategyidGeneratorThe generator to use.private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy>idGeneratorLookupStrategyStrategy used to locate theIdentifierGenerationStrategyto use.private org.slf4j.LoggerlogClass logger.private booleanoverwriteExistingOverwrite an existing message?
-
Constructor Summary
Constructors Constructor Description AddResponseShell()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext)protected booleandoPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext)voidsetIdentifierGeneratorLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy> strategy)Set the strategy used to locate theIdentifierGenerationStrategyto use.voidsetOverwriteExisting(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
-
-
-
-
Field Detail
-
log
@Nonnull private org.slf4j.Logger log
Class logger.
-
idGeneratorLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy> idGeneratorLookupStrategy
Strategy used to locate theIdentifierGenerationStrategyto use.
-
overwriteExisting
private boolean overwriteExisting
Overwrite an existing message?
-
idGenerator
@Nullable private net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy idGenerator
The generator to use.
-
-
Method Detail
-
setOverwriteExisting
public void setOverwriteExisting(boolean flag)
Set whether to overwrite an existing message.- Parameters:
flag- flag to set
-
setIdentifierGeneratorLookupStrategy
public void setIdentifierGeneratorLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy> strategy)Set the strategy used to locate theIdentifierGenerationStrategyto use.- Parameters:
strategy- lookup strategy
-
doPreExecute
protected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classorg.opensaml.profile.action.AbstractProfileAction
-
doExecute
protected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classorg.opensaml.profile.action.AbstractProfileAction
-
-