Class ResolveArtifacts
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.profile.action.AbstractProfileAction
-
- org.opensaml.saml.saml1.profile.impl.ResolveArtifacts
-
- All Implemented Interfaces:
net.shibboleth.utilities.java.support.component.Component,net.shibboleth.utilities.java.support.component.DestructableComponent,net.shibboleth.utilities.java.support.component.InitializableComponent,org.opensaml.profile.action.ProfileAction
public class ResolveArtifacts extends org.opensaml.profile.action.AbstractProfileActionAction that resolves SAML 1.x artifacts inside aRequestlocated via a lookup strategy, by default from the inbound message context, and maps them to the corresponding assertions.The assertions are added to a
Responselocated via a lookup strategy, by default from the outbound message context.- Event:
EventIds.PROCEED_EVENT_ID,EventIds.INVALID_MSG_CTX,EventIds.INVALID_PROFILE_CTX,SAMLEventIds.UNABLE_RESOLVE_ARTIFACT
-
-
Field Summary
Fields Modifier and Type Field Description private org.opensaml.saml.common.binding.artifact.SAMLArtifactMapartifactMapArtifact mapper.private StringissuerIdIdentity of issuer.private Function<org.opensaml.profile.context.ProfileRequestContext,String>issuerLookupStrategyStrategy used to locate the issuer identity to validate against artifact entries.private org.slf4j.LoggerlogClass logger.private org.opensaml.saml.saml1.core.RequestrequestRequest to process.private StringrequesterIdIdentity of requester.private Function<org.opensaml.profile.context.ProfileRequestContext,String>requesterLookupStrategyStrategy used to locate the requester identity to validate against artifact entries.private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml1.core.Request>requestLookupStrategyStrategy used to locate theRequestto operate on.private org.opensaml.saml.saml1.core.ResponseresponseResponse to populate.private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml1.core.Response>responseLookupStrategyStrategy used to locate theResponseto operate on.
-
Constructor Summary
Constructors Constructor Description ResolveArtifacts()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext)protected voiddoInitialize()protected booleandoPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext)voidsetArtifactMap(org.opensaml.saml.common.binding.artifact.SAMLArtifactMap map)Set the artifact map to use.voidsetIssuerLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)Set the strategy used to locate the issuer's identity.voidsetRequesterLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)Set the strategy used to locate the requester's identity.voidsetRequestLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml1.core.Request> strategy)Set the strategy used to locate theRequestto operate on.voidsetResponseLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml1.core.Response> strategy)Set the strategy used to locate theResponseto operate on.-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private org.slf4j.Logger log
Class logger.
-
requestLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml1.core.Request> requestLookupStrategy
Strategy used to locate theRequestto operate on.
-
responseLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml1.core.Response> responseLookupStrategy
Strategy used to locate theResponseto operate on.
-
issuerLookupStrategy
@NonnullAfterInit private Function<org.opensaml.profile.context.ProfileRequestContext,String> issuerLookupStrategy
Strategy used to locate the issuer identity to validate against artifact entries.
-
requesterLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,String> requesterLookupStrategy
Strategy used to locate the requester identity to validate against artifact entries.
-
artifactMap
@NonnullAfterInit private org.opensaml.saml.common.binding.artifact.SAMLArtifactMap artifactMap
Artifact mapper.
-
request
@Nullable private org.opensaml.saml.saml1.core.Request request
Request to process.
-
response
@Nullable private org.opensaml.saml.saml1.core.Response response
Response to populate.
-
issuerId
@Nullable private String issuerId
Identity of issuer.
-
requesterId
@Nullable private String requesterId
Identity of requester.
-
-
Method Detail
-
setRequestLookupStrategy
public void setRequestLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml1.core.Request> strategy)Set the strategy used to locate theRequestto operate on.- Parameters:
strategy- lookup strategy
-
setResponseLookupStrategy
public void setResponseLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml1.core.Response> strategy)Set the strategy used to locate theResponseto operate on.- Parameters:
strategy- lookup strategy
-
setIssuerLookupStrategy
public void setIssuerLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)Set the strategy used to locate the issuer's identity.- Parameters:
strategy- lookup strategy
-
setRequesterLookupStrategy
public void setRequesterLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)Set the strategy used to locate the requester's identity.- Parameters:
strategy- lookup strategy
-
setArtifactMap
public void setArtifactMap(@Nonnull org.opensaml.saml.common.binding.artifact.SAMLArtifactMap map)Set the artifact map to use.- Parameters:
map- artifact map
-
doInitialize
protected void doInitialize() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Overrides:
doInitializein classnet.shibboleth.utilities.java.support.component.AbstractInitializableComponent- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
doPreExecute
protected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classorg.opensaml.profile.action.AbstractProfileAction
-
doExecute
protected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classorg.opensaml.profile.action.AbstractProfileAction
-
-