public class ResolveArtifact extends AbstractProfileAction
ArtifactResolve request located
via a lookup strategy, by default from the inbound message context, and maps it to the
corresponding message.
The message is added to an ArtifactResponse located via a lookup strategy, by default
from the outbound message context.
| Modifier and Type | Field and Description |
|---|---|
private SAMLArtifactMap |
artifactMap
Artifact mapper.
|
private java.lang.String |
issuerId
Identity of issuer.
|
private com.google.common.base.Function<ProfileRequestContext,java.lang.String> |
issuerLookupStrategy
Strategy used to locate the issuer identity to validate against artifact entries.
|
private org.slf4j.Logger |
log
Class logger.
|
private ArtifactResolve |
request
Request to process.
|
private java.lang.String |
requesterId
Identity of requester.
|
private com.google.common.base.Function<ProfileRequestContext,java.lang.String> |
requesterLookupStrategy
Strategy used to locate the requester identity to validate against artifact entries.
|
private com.google.common.base.Function<ProfileRequestContext,ArtifactResolve> |
requestLookupStrategy
Strategy used to locate the
ArtifactResolve to operate on. |
private ArtifactResponse |
response
Response to populate.
|
private com.google.common.base.Function<ProfileRequestContext,ArtifactResponse> |
responseLookupStrategy
Strategy used to locate the
ArtifactResponse to operate on. |
| Constructor and Description |
|---|
ResolveArtifact()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext)
Performs this action.
|
protected void |
doInitialize() |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext)
Called prior to execution, actions may override this method to perform pre-processing for a request.
|
void |
setArtifactMap(SAMLArtifactMap map)
Set the artifact map to use.
|
void |
setIssuerLookupStrategy(com.google.common.base.Function<ProfileRequestContext,java.lang.String> strategy)
Set the strategy used to locate the issuer's identity.
|
void |
setRequesterLookupStrategy(com.google.common.base.Function<ProfileRequestContext,java.lang.String> strategy)
Set the strategy used to locate the requester's identity.
|
void |
setRequestLookupStrategy(com.google.common.base.Function<ProfileRequestContext,ArtifactResolve> strategy)
Set the strategy used to locate the
ArtifactResolve to operate on. |
void |
setResponseLookupStrategy(com.google.common.base.Function<ProfileRequestContext,ArtifactResponse> strategy)
Set the strategy used to locate the
ArtifactResponse to operate on. |
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, initialize, isDestroyed, isInitialized@Nonnull private org.slf4j.Logger log
@Nonnull private com.google.common.base.Function<ProfileRequestContext,ArtifactResolve> requestLookupStrategy
ArtifactResolve to operate on.@Nonnull private com.google.common.base.Function<ProfileRequestContext,ArtifactResponse> responseLookupStrategy
ArtifactResponse to operate on.@NonnullAfterInit private com.google.common.base.Function<ProfileRequestContext,java.lang.String> issuerLookupStrategy
@Nonnull private com.google.common.base.Function<ProfileRequestContext,java.lang.String> requesterLookupStrategy
@NonnullAfterInit private SAMLArtifactMap artifactMap
@Nullable private ArtifactResolve request
@Nullable private ArtifactResponse response
@Nullable private java.lang.String issuerId
@Nullable private java.lang.String requesterId
public void setRequestLookupStrategy(@Nonnull
com.google.common.base.Function<ProfileRequestContext,ArtifactResolve> strategy)
ArtifactResolve to operate on.strategy - lookup strategypublic void setResponseLookupStrategy(@Nonnull
com.google.common.base.Function<ProfileRequestContext,ArtifactResponse> strategy)
ArtifactResponse to operate on.strategy - lookup strategypublic void setIssuerLookupStrategy(@Nonnull
com.google.common.base.Function<ProfileRequestContext,java.lang.String> strategy)
strategy - lookup strategypublic void setRequesterLookupStrategy(@Nonnull
com.google.common.base.Function<ProfileRequestContext,java.lang.String> strategy)
strategy - lookup strategypublic void setArtifactMap(@Nonnull
SAMLArtifactMap map)
map - artifact mapprotected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprotected boolean doPreExecute(@Nonnull
ProfileRequestContext profileRequestContext)
If false is returned, execution will not proceed, and the action should attach an
EventContext to 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.
doPreExecute in class AbstractProfileActionprofileRequestContext - the current IdP profile request contextprotected void doExecute(@Nonnull
ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileActionprofileRequestContext - the current IdP profile request context