@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 Assertion |
assertion
The assertion to modify.
|
private com.google.common.base.Function<ProfileRequestContext,Assertion> |
assertionLookupStrategy
Strategy used to locate the
Assertion to operate on. |
private com.google.common.base.Function<ProfileRequestContext,Assertion> |
assertionTokenStrategy
Function used to resolve the inbound assertion token to process.
|
private 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 com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> |
relyingPartyContextLookupStrategy
Strategy used to lookup the RelyingPartyContext.
|
| Constructor and Description |
|---|
AddDelegationPolicyToAssertion()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext) |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext) |
protected Long |
resolveMaxChainLength(ProfileRequestContext profileRequestContext)
Resolve the max token delegation chain length value to add to the assertion.
|
void |
setAssertionLookupStrategy(com.google.common.base.Function<ProfileRequestContext,Assertion> strategy)
Set the strategy used to locate the
Assertion to operate on. |
void |
setAssertionTokenStrategy(com.google.common.base.Function<ProfileRequestContext,Assertion> strategy)
Set the strategy used to locate the inbound assertion token to process.
|
void |
setRelyingPartyContextLookupStrategy(com.google.common.base.Function<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 com.google.common.base.Function<ProfileRequestContext,Assertion> assertionLookupStrategy
Assertion to operate on.@Nonnull private com.google.common.base.Function<ProfileRequestContext,Assertion> assertionTokenStrategy
@Nonnull private com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategy
@Nullable private Assertion attestedAssertion
public AddDelegationPolicyToAssertion()
public void setAssertionTokenStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,Assertion> strategy)
strategy - lookup strategypublic void setRelyingPartyContextLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> strategy)
RelyingPartyContext.strategy - strategy used to locate the current RelyingPartyContextpublic void setAssertionLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,Assertion> strategy)
Assertion to operate on.strategy - strategy used to locate the Assertion to operate onprotected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)
doPreExecute in class AbstractConditionalProfileActionprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileAction@Nonnull protected Long resolveMaxChainLength(@Nonnull ProfileRequestContext profileRequestContext)
profileRequestContext - the current profile request contextCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.