Class ProcessDelegatedAssertion
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.idp.saml.saml2.profile.delegation.impl.ProcessDelegatedAssertion
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Process the pre-validated inbound
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.
- Event:
AuthnEventIds.NO_CREDENTIALS,AuthnEventIds.INVALID_SUBJECT- Precondition:
assertionTokenStrategy.apply(profileRequestContext).getSubject().getNameID() != null
- Postcondition:
profileRequestContext.getSubcontext(SubjectCanonicalizationContext.class) != null
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassDefault strategy for resolving the requester entityID for SAML subject c14n. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AssertionThe SAML 2 Assertion token being processed.private Function<ProfileRequestContext,Assertion> Function used to resolve the assertion token to process.private org.slf4j.LoggerLogger.private NameIDThe SAML 2 NameID representing the authenticated user.private Function<ProfileRequestContext,String> Function used to obtain the requester ID, for purposes of Subject c14n.private Function<ProfileRequestContext,String> Function used to obtain the responder ID, for purposes of Subject c14n. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidSet the strategy used to locate the inbound assertion token to process.voidSet the strategy used to locate the requester ID for subject canonicalization.voidSet the strategy used to locate the responder ID for subject canonicalization.Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, setHttpServletRequest, setHttpServletRequestSupplier, setHttpServletResponse, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logLogger. -
requesterLookupStrategy
Function used to obtain the requester ID, for purposes of Subject c14n. -
responderLookupStrategy
Function used to obtain the responder ID, for purposes of Subject c14n. -
assertionTokenStrategy
Function used to resolve the assertion token to process. -
assertion
The SAML 2 Assertion token being processed. -
nameID
The SAML 2 NameID representing the authenticated user.
-
-
Constructor Details
-
ProcessDelegatedAssertion
public ProcessDelegatedAssertion()Constructor.
-
-
Method Details
-
setAssertionTokenStrategy
Set the strategy used to locate the inbound assertion token to process.- Parameters:
strategy- lookup strategy
-
setRequesterLookupStrategy
Set the strategy used to locate the requester ID for subject canonicalization.- Parameters:
strategy- lookup strategy
-
setResponderLookupStrategy
Set the strategy used to locate the responder ID for subject canonicalization.- Parameters:
strategy- lookup strategy
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-