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:
Component,DestructableComponent,InitializableComponent,ProfileAction
public class ResolveArtifacts extends AbstractProfileAction
-
-
Field Summary
Fields Modifier and Type Field Description private SAMLArtifactMapartifactMapArtifact mapper.private StringissuerIdIdentity of issuer.private Function<ProfileRequestContext,String>issuerLookupStrategyStrategy used to locate the issuer identity to validate against artifact entries.private org.slf4j.LoggerlogClass logger.private RequestrequestRequest to process.private StringrequesterIdIdentity of requester.private Function<ProfileRequestContext,String>requesterLookupStrategyStrategy used to locate the requester identity to validate against artifact entries.private Function<ProfileRequestContext,Request>requestLookupStrategyStrategy used to locate theRequestto operate on.private ResponseresponseResponse to populate.private Function<ProfileRequestContext,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(ProfileRequestContext profileRequestContext)Performs this action.protected voiddoInitialize()protected booleandoPreExecute(ProfileRequestContext profileRequestContext)Called prior to execution, actions may override this method to perform pre-processing for a request.voidsetArtifactMap(SAMLArtifactMap map)Set the artifact map to use.voidsetIssuerLookupStrategy(Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the issuer's identity.voidsetRequesterLookupStrategy(Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the requester's identity.voidsetRequestLookupStrategy(Function<ProfileRequestContext,Request> strategy)Set the strategy used to locate theRequestto operate on.voidsetResponseLookupStrategy(Function<ProfileRequestContext,Response> strategy)Set the strategy used to locate theResponseto operate on.-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, setHttpServletRequest, setHttpServletRequestSupplier, setHttpServletResponse, setHttpServletResponseSupplier
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private org.slf4j.Logger log
Class logger.
-
requestLookupStrategy
@Nonnull private Function<ProfileRequestContext,Request> requestLookupStrategy
Strategy used to locate theRequestto operate on.
-
responseLookupStrategy
@Nonnull private Function<ProfileRequestContext,Response> responseLookupStrategy
Strategy used to locate theResponseto operate on.
-
issuerLookupStrategy
@NonnullAfterInit private Function<ProfileRequestContext,String> issuerLookupStrategy
Strategy used to locate the issuer identity to validate against artifact entries.
-
requesterLookupStrategy
@Nonnull private Function<ProfileRequestContext,String> requesterLookupStrategy
Strategy used to locate the requester identity to validate against artifact entries.
-
artifactMap
@NonnullAfterInit private SAMLArtifactMap artifactMap
Artifact mapper.
-
request
@Nullable private Request request
Request to process.
-
response
@Nullable private 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<ProfileRequestContext,Request> strategy)Set the strategy used to locate theRequestto operate on.- Parameters:
strategy- lookup strategy
-
setResponseLookupStrategy
public void setResponseLookupStrategy(@Nonnull Function<ProfileRequestContext,Response> strategy)Set the strategy used to locate theResponseto operate on.- Parameters:
strategy- lookup strategy
-
setIssuerLookupStrategy
public void setIssuerLookupStrategy(@Nonnull Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the issuer's identity.- Parameters:
strategy- lookup strategy
-
setRequesterLookupStrategy
public void setRequesterLookupStrategy(@Nonnull Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the requester's identity.- Parameters:
strategy- lookup strategy
-
setArtifactMap
public void setArtifactMap(@Nonnull SAMLArtifactMap map)Set the artifact map to use.- Parameters:
map- artifact map
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)Called prior to execution, actions may override this method to perform pre-processing for a request.If false is returned, execution will not proceed, and the action should attach an
EventContextto the context tree to signal how to continue with overall workflow processing.If returning successfully, the last step should be to return the result of the superclass version of this method.
- Overrides:
doPreExecutein classAbstractProfileAction- Parameters:
profileRequestContext- the current IdP profile request context- Returns:
- true iff execution should proceed
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)Performs this action. Actions must override this method to perform their work.- Overrides:
doExecutein classAbstractProfileAction- Parameters:
profileRequestContext- the current IdP profile request context
-
-