public class ArtifactResolutionProfileImpl extends ArtifactResolutionProfileBase
artifactMap, builderFactory, log, metadata, processor, uriComparator
Constructor and Description |
---|
ArtifactResolutionProfileImpl(org.apache.commons.httpclient.HttpClient httpClient) |
Modifier and Type | Method and Description |
---|---|
protected void |
getArtifactResponse(String endpointURI,
SAMLMessageContext context)
Uses HTTPClient to send and retrieve ArtifactMessages.
|
protected org.apache.commons.httpclient.HostConfiguration |
getHostConfiguration(org.apache.commons.httpclient.URI uri,
SAMLMessageContext context)
Method is expected to determine hostConfiguration used to send request to the server by back-channel.
|
protected org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory |
getSSLSocketFactory(SAMLMessageContext context,
X509KeyManager manager,
X509TrustManager trustManager,
HostnameVerifier hostnameVerifier)
Method returns SecureProtocolSocketFactory used to connect to create SSL connections for artifact resolution.
|
protected boolean |
isHostnameVerificationSupported()
Check for the latest OpenSAML library.
|
createArtifactResolve, getProfileIdentifier, resolveArtifact
afterPropertiesSet, buildCommonAttributes, generateID, getEndpointBinding, getIssuer, getMaxAssertionTime, getResponseSkew, getStatus, isEndpointMatching, sendMessage, sendMessage, setArtifactMap, setMaxAssertionTime, setMetadata, setProcessor, setResponseSkew, verifyEndpoint, verifyIssuer, verifySignature
public ArtifactResolutionProfileImpl(org.apache.commons.httpclient.HttpClient httpClient)
httpClient
- client used to send SOAP messagesprotected void getArtifactResponse(String endpointURI, SAMLMessageContext context) throws org.opensaml.common.SAMLException, org.opensaml.ws.message.encoder.MessageEncodingException, org.opensaml.ws.message.decoder.MessageDecodingException, org.opensaml.saml2.metadata.provider.MetadataProviderException, org.opensaml.xml.security.SecurityException
getArtifactResponse
in class ArtifactResolutionProfileBase
endpointURI
- URI incoming artifactMessage is addressed tocontext
- context with filled communicationProfileId, outboundMessage, outboundSAMLMessage, peerEntityEndpoint, peerEntityId, peerEntityMetadata, peerEntityRole, peerEntityRoleMetadataorg.opensaml.common.SAMLException
- error processing artifact messagesorg.opensaml.ws.message.encoder.MessageEncodingException
- error sending artifactRequestorg.opensaml.ws.message.decoder.MessageDecodingException
- error retrieving artifactResponseorg.opensaml.saml2.metadata.provider.MetadataProviderException
- error resolving metadataorg.opensaml.xml.security.SecurityException
- invalid message signatureprotected org.apache.commons.httpclient.HostConfiguration getHostConfiguration(org.apache.commons.httpclient.URI uri, SAMLMessageContext context) throws org.opensaml.ws.message.encoder.MessageEncodingException
Default implementation uses either default http protocol for non-SSL requests or constructs a separate TrustManager using trust engine specified in the SAMLMessageContext - based either on MetaIOP (certificates obtained from Metadata and ExtendedMetadata are trusted) or PKIX (certificates from metadata and ExtendedMetadata including specified trust anchors are trusted and verified using PKIX).
Used trust engine can be customized as part of the SAMLContextProvider used to process this request.
Default values for the HostConfiguration are cloned from the HTTPClient set in this instance, when there are no defaults available a new object is created.
uri
- uri the request should be sent tocontext
- context including the peer addressorg.opensaml.ws.message.encoder.MessageEncodingException
- in case peer URI can't be parsedprotected org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory getSSLSocketFactory(SAMLMessageContext context, X509KeyManager manager, X509TrustManager trustManager, HostnameVerifier hostnameVerifier)
context
- current SAML contextmanager
- keys used for client authenticationtrustManager
- trust manager for server verificationhostnameVerifier
- verifier for server hostname, or nullprotected boolean isHostnameVerificationSupported()