@Prototype public class AddDelegationPolicyToAssertion extends AbstractProfileAction
DelegationPolicy element to the Advice of an Assertion.
The assertion to modify is determined by the strategy set by setAssertionLookupStrategy(Function).
The maximum chain delegation length value for the added policy element is as follows:
setAssertionTokenStrategy(Function), the value is obtained from the policy contained
within the first DelegationPolicy element of that assertion's Advice element.BrowserSSOProfileConfiguration.getMaximumTokenDelegationChainLength().DEFAULT_POLICY_MAX_CHAIN_LENGTH| Modifier and Type | Class and Description |
|---|---|
private class |
AddDelegationPolicyToAssertion.AssertionStrategy
Default strategy for obtaining assertion to modify.
|
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.saml.saml2.core.Assertion |
assertion
The assertion to modify.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Assertion> |
assertionLookupStrategy
Strategy used to locate the
Assertion to operate on. |
private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Assertion> |
assertionTokenStrategy
Function used to resolve the inbound assertion token to process.
|
private org.opensaml.saml.saml2.core.Assertion |
attestedAssertion
The inbound delegated Assertion that was attested.
|
static Long |
DEFAULT_POLICY_MAX_CHAIN_LENGTH
Default policy max chain length, when can't otherwise be derived.
|
private org.slf4j.Logger |
log
Logger.
|
private Long |
maxChainLength
The max token delegation chain length value to add.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> |
relyingPartyContextLookupStrategy
Strategy used to lookup the RelyingPartyContext.
|
| Constructor and Description |
|---|
AddDelegationPolicyToAssertion()
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) |
protected Long |
resolveMaxChainLength(org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
Resolve the max token delegation chain length value to add to the assertion.
|
void |
setAssertionLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Assertion> strategy)
Set the strategy used to locate the
Assertion to operate on. |
void |
setAssertionTokenStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Assertion> strategy)
Set the strategy used to locate the inbound assertion token to process.
|
void |
setRelyingPartyContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> strategy)
Set the strategy used to locate the current
RelyingPartyContext. |
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitializedpublic static final Long DEFAULT_POLICY_MAX_CHAIN_LENGTH
private org.slf4j.Logger log
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Assertion> assertionLookupStrategy
Assertion to operate on.@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Assertion> assertionTokenStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategy
@Nullable private org.opensaml.saml.saml2.core.Assertion assertion
@Nullable private org.opensaml.saml.saml2.core.Assertion attestedAssertion
public AddDelegationPolicyToAssertion()
public void setAssertionTokenStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Assertion> strategy)
strategy - lookup strategypublic void setRelyingPartyContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> strategy)
RelyingPartyContext.strategy - strategy used to locate the current RelyingPartyContextpublic void setAssertionLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Assertion> strategy)
Assertion to operate on.strategy - strategy used to locate the Assertion to operate onprotected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doPreExecute in class org.opensaml.profile.action.AbstractConditionalProfileActionprotected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doExecute in class org.opensaml.profile.action.AbstractProfileAction@Nonnull protected Long resolveMaxChainLength(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
profileRequestContext - the current profile request contextCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.