public class AddNotOnOrAfterConditionToAssertions extends AbstractConditionalProfileAction
NotBefore attribute to every assertion in a SAML 1/2
response message. If the containing Conditions is not present, it will be created.| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Function<ProfileRequestContext,java.lang.Long> |
assertionLifetimeStrategy
Strategy to obtain assertion lifetime policy.
|
private long |
defaultAssertionLifetime
Default lifetime to use to establish timestamp.
|
private org.slf4j.Logger |
log
Class logger.
|
private SAMLObject |
response
Response to modify.
|
private com.google.common.base.Function<ProfileRequestContext,SAMLObject> |
responseLookupStrategy
Strategy used to locate the Response to operate on.
|
| Constructor and Description |
|---|
AddNotOnOrAfterConditionToAssertions()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext)
Performs this action.
|
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext)
Called prior to execution, actions may override this method to perform pre-processing for a request.
|
void |
setAssertionLifetimeStrategy(com.google.common.base.Function<ProfileRequestContext,java.lang.Long> strategy)
Set strategy function to obtain assertion lifetime.
|
void |
setDefaultAssertionLifetime(long lifetime)
Set the default assertion lifetime in milliseconds.
|
void |
setResponseLookupStrategy(com.google.common.base.Function<ProfileRequestContext,SAMLObject> strategy)
Set the strategy used to locate the Response to operate on.
|
getActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized@Nonnull private final org.slf4j.Logger log
@Nonnull private com.google.common.base.Function<ProfileRequestContext,SAMLObject> responseLookupStrategy
@Nullable private com.google.common.base.Function<ProfileRequestContext,java.lang.Long> assertionLifetimeStrategy
@Duration @NonNegative private long defaultAssertionLifetime
@Nullable private SAMLObject response
public AddNotOnOrAfterConditionToAssertions()
public void setResponseLookupStrategy(@Nonnull
com.google.common.base.Function<ProfileRequestContext,SAMLObject> strategy)
strategy - lookup strategypublic void setAssertionLifetimeStrategy(@Nullable
com.google.common.base.Function<ProfileRequestContext,java.lang.Long> strategy)
strategy - strategy functionpublic void setDefaultAssertionLifetime(@Duration @NonNegative
long lifetime)
lifetime - default lifetime in millisecondsprotected boolean doPreExecute(@Nonnull
ProfileRequestContext profileRequestContext)
If false is returned, execution will not proceed, and the action should attach an
EventContext to the context tree to signal how to continue with overall
workflow processing.
If returning successfully, the last step should be to return the result of the superclass version of this method.
doPreExecute in class AbstractConditionalProfileActionprofileRequestContext - the current IdP profile request contextprotected void doExecute(@Nonnull
ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileActionprofileRequestContext - the current IdP profile request context