@Prototype public class ProcessDelegatedAssertion extends AbstractProfileAction
Assertion WS-Security token, and set up the resulting
NameID for subject canonicalization as the effective subject of the request.
A SubjectCanonicalizationContext is added containing a NameIDPrincipal with the
token's NameID.
AuthnEventIds.NO_CREDENTIALS, AuthnEventIds.INVALID_SUBJECTassertionTokenStrategy.apply(profileRequestContext).getSubject().getNameID() != null
profileRequestContext.getSubcontext(SubjectCanonicalizationContext.class) != null
| Modifier and Type | Class and Description |
|---|---|
class |
ProcessDelegatedAssertion.DefaultC14NRequesterLookupFunction
Default strategy for resolving the requester entityID for SAML subject c14n.
|
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.saml.saml2.core.Assertion |
assertion
The SAML 2 Assertion token being processed.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Assertion> |
assertionTokenStrategy
Function used to resolve the assertion token to process.
|
private org.slf4j.Logger |
log
Logger.
|
private org.opensaml.saml.saml2.core.NameID |
nameID
The SAML 2 NameID representing the authenticated user.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,String> |
requesterLookupStrategy
Function used to obtain the requester ID, for purposes of Subject c14n.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,String> |
responderLookupStrategy
Function used to obtain the responder ID, for purposes of Subject c14n.
|
| Constructor and Description |
|---|
ProcessDelegatedAssertion()
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) |
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 |
setRequesterLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
Set the strategy used to locate the requester ID for subject canonicalization.
|
void |
setResponderLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
Set the strategy used to locate the responder ID for subject canonicalization.
|
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, isInitializedprivate org.slf4j.Logger log
@Nullable private Function<org.opensaml.profile.context.ProfileRequestContext,String> requesterLookupStrategy
@Nullable private Function<org.opensaml.profile.context.ProfileRequestContext,String> responderLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Assertion> assertionTokenStrategy
private org.opensaml.saml.saml2.core.Assertion assertion
private org.opensaml.saml.saml2.core.NameID nameID
public void setAssertionTokenStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.Assertion> strategy)
strategy - lookup strategypublic void setRequesterLookupStrategy(@Nullable Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
strategy - lookup strategypublic void setResponderLookupStrategy(@Nullable Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
strategy - lookup strategyprotected 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.AbstractProfileActionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.