public class ArtifactResolution extends AbstractSAML2ProfileHandler
| Modifier and Type | Class and Description |
|---|---|
class |
ArtifactResolution.ArtifactResolutionRequestContext
Represents the internal state of a SAML 2.0 Artifact resolver request while it's being processed by the IdP.
|
AbstractSAML2ProfileHandler.SAML2AuditLogEntry| Modifier and Type | Field and Description |
|---|---|
private SAMLObjectBuilder<AssertionConsumerService> |
acsEndpointBuilder
Builder of assertion consumer service endpoints.
|
private SAMLArtifactMap |
artifactMap
Map artifacts to SAML messages.
|
private org.slf4j.Logger |
log
Class logger.
|
private SAMLObjectBuilder<ArtifactResponse> |
responseBuilder
Artifact response object builder.
|
SAML_VERSION| Constructor and Description |
|---|
ArtifactResolution(SAMLArtifactMap map)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ArtifactResponse |
buildArtifactErrorResponse(ArtifactResolution.ArtifactResolutionRequestContext requestContext)
Constructs an artifact resolution response with an error status as content.
|
protected ArtifactResponse |
buildArtifactResponse(ArtifactResolution.ArtifactResolutionRequestContext requestContext)
Constructs a artifact resolution response with the derferenced SAML message inside.
|
protected void |
decodeRequest(ArtifactResolution.ArtifactResolutionRequestContext requestContext,
HTTPInTransport inTransport,
HTTPOutTransport outTransport)
Decodes an incoming request and populates a created request context with the resultant information.
|
String |
getProfileId() |
protected void |
populateAssertingPartyInformation(BaseSAMLProfileRequestContext requestContext)
Populates the request context with information about the asserting party.
|
protected void |
populateRelyingPartyInformation(BaseSAMLProfileRequestContext requestContext)
Populates the request context with information about the relying party.
|
protected void |
populateSAMLMessageInformation(BaseSAMLProfileRequestContext requestContext)
Populates the request context with information from the inbound SAML message.
|
void |
processRequest(HTTPInTransport inTransport,
HTTPOutTransport outTransport) |
protected Endpoint |
selectEndpoint(BaseSAMLProfileRequestContext requestContext)
Selects the appropriate endpoint for the relying party and stores it in the request context.
|
buildAssertion, buildAttributeStatement, buildConditions, buildEntityIssuer, buildErrorResponse, buildNameId, buildResponse, buildStatus, buildSubject, buildSubjectConfirmation, checkSamlVersion, getEncrypter, getKeyEncryptionCredential, getSessionIndexFromNameID, isEncryptAssertion, isEncryptNameID, isRequestRequiresEncryptNameID, isSignAssertion, populateRequestContext, populateStatusResponse, populateUserInformation, postProcessAssertion, postProcessResponse, resolveAttributes, resolvePrincipal, signAssertion, writeAuditLogEntryencodeResponse, filterNameIDAttributesByFormats, filterNameIDAttributesByProtocol, getAduitLog, getAuditLog, getEntitySupportedFormats, getIdGenerator, getInboundBinding, getInboundMessageDecoder, getMessageDecoders, getMessageEncoders, getMetadataCredentialResolver, getMetadataProvider, getOutboundMessageEncoder, getRelyingPartyConfiguration, getRequiredNameIDFormat, getSecurityPolicyResolver, getSupportedNameFormats, getSupportedOutboundBindings, getUserSession, getUserSession, isSignResponse, populateProfileInformation, selectNameIDAttributeAndEncoder, selectNameIDAttributeAndEncoder, setIdGenerator, setInboundBinding, setMessageDecoders, setMessageEncoders, setSecurityPolicyResolver, setSupportedOutboundBindingsgetBuilderFactory, getParserPool, getProfileConfiguration, getRelyingPartyConfigurationManager, getSessionManager, getStorageService, setParserPool, setRelyingPartyConfigurationManager, setSessionManager, setStorageServicegetRequestPaths, setRequestPathsprivate final org.slf4j.Logger log
private SAMLArtifactMap artifactMap
private SAMLObjectBuilder<ArtifactResponse> responseBuilder
private SAMLObjectBuilder<AssertionConsumerService> acsEndpointBuilder
public ArtifactResolution(SAMLArtifactMap map)
map - ArtifactMap used to lookup artifacts to be resolved.public String getProfileId()
getProfileId in class AbstractShibbolethProfileHandler<SAMLMDRelyingPartyConfigurationManager,Session>public void processRequest(HTTPInTransport inTransport, HTTPOutTransport outTransport) throws ProfileException
ProfileExceptionprotected void decodeRequest(ArtifactResolution.ArtifactResolutionRequestContext requestContext, HTTPInTransport inTransport, HTTPOutTransport outTransport) throws ProfileException
inTransport - inbound message transportoutTransport - outbound message transportrequestContext - request context to which decoded information should be addedProfileException - throw if there is a problem decoding the requestprotected void populateRelyingPartyInformation(BaseSAMLProfileRequestContext requestContext) throws ProfileException
populateRelyingPartyInformation in class AbstractSAMLProfileHandlerrequestContext - current request contextProfileException - thrown if there is a problem looking up the relying party's metadataprotected void populateAssertingPartyInformation(BaseSAMLProfileRequestContext requestContext) throws ProfileException
AbstractSAMLProfileHandler.populateRequestContext(BaseSAMLProfileRequestContext) has already invoked
AbstractSAMLProfileHandler.populateRelyingPartyInformation(BaseSAMLProfileRequestContext) has already been invoked and the
properties it provides are available in the request context.
This method requires the the following request context properties to be populated: metadata provider, relying
party configuration
This methods populates the following request context properties: local entity ID, outbound message issuer, local
entity metadatapopulateAssertingPartyInformation in class AbstractSAMLProfileHandlerrequestContext - current request contextProfileException - thrown if there is a problem looking up the asserting party's metadataprotected void populateSAMLMessageInformation(BaseSAMLProfileRequestContext requestContext) throws ProfileException
populateSAMLMessageInformation in class AbstractSAMLProfileHandlerrequestContext - current request contextProfileException - thrown if the inbound SAML message or subject identifier is nullprotected Endpoint selectEndpoint(BaseSAMLProfileRequestContext requestContext)
selectEndpoint in class AbstractSAMLProfileHandlerrequestContext - current request contextprotected ArtifactResponse buildArtifactResponse(ArtifactResolution.ArtifactResolutionRequestContext requestContext)
requestContext - current request contextprotected ArtifactResponse buildArtifactErrorResponse(ArtifactResolution.ArtifactResolutionRequestContext requestContext)
requestContext - current request contextCopyright © 1999-2014. All Rights Reserved.