Class AddGeneratedKeyToAssertions
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.profile.action.AbstractProfileAction
-
- org.opensaml.profile.action.AbstractConditionalProfileAction
-
- org.opensaml.saml.saml2.profile.impl.AddGeneratedKeyToAssertions
-
- 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 AddGeneratedKeyToAssertions extends org.opensaml.profile.action.AbstractConditionalProfileActionAction to add aGeneratedKeyextension to everyAssertionin aResponsemessage.If the containing
Adviceis not present, it will be created.The
ECPContextto read from is located via lookup strategy, by default beneath the outbound message context.- Event:
EventIds.PROCEED_EVENT_ID,EventIds.INVALID_MSG_CTX,EventIds.MESSAGE_PROC_ERROR
-
-
Field Summary
Fields Modifier and Type Field Description private org.opensaml.saml.common.messaging.context.ECPContextecpContextECPContext to read from.private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.ECPContext>ecpContextLookupStrategyStrategy used to locate theECPContextto operate on.private org.slf4j.LoggerlogClass logger.private org.opensaml.saml.saml2.core.ResponseresponseResponse to modify.private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Response>responseLookupStrategyStrategy used to locate theResponseto operate on.
-
Constructor Summary
Constructors Constructor Description AddGeneratedKeyToAssertions()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)voidsetECPContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.ECPContext> strategy)Set the strategy used to locate theECPContextto operate on.voidsetResponseLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Response> strategy)Set the strategy used to locate theResponseto operate on.-
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationCondition
-
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 final org.slf4j.Logger log
Class logger.
-
ecpContextLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.ECPContext> ecpContextLookupStrategy
Strategy used to locate theECPContextto operate on.
-
responseLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Response> responseLookupStrategy
Strategy used to locate theResponseto operate on.
-
ecpContext
@Nullable private org.opensaml.saml.common.messaging.context.ECPContext ecpContext
ECPContext to read from.
-
response
@Nullable private org.opensaml.saml.saml2.core.Response response
Response to modify.
-
-
Method Detail
-
setECPContextLookupStrategy
public void setECPContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.ECPContext> strategy)Set the strategy used to locate theECPContextto operate on.- Parameters:
strategy- lookup strategy
-
setResponseLookupStrategy
public void setResponseLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Response> strategy)Set the strategy used to locate theResponseto operate on.- Parameters:
strategy- lookup strategy
-
doPreExecute
protected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classorg.opensaml.profile.action.AbstractConditionalProfileAction
-
doExecute
protected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classorg.opensaml.profile.action.AbstractProfileAction
-
-