org.opensaml.saml1.binding.decoding
Class HTTPSOAP11Decoder

java.lang.Object
  extended by org.opensaml.ws.message.decoder.BaseMessageDecoder
      extended by org.opensaml.common.binding.decoding.BaseSAMLMessageDecoder
          extended by org.opensaml.saml1.binding.decoding.BaseSAML1MessageDecoder
              extended by org.opensaml.saml1.binding.decoding.HTTPSOAP11Decoder
All Implemented Interfaces:
SAMLMessageDecoder, org.opensaml.ws.message.decoder.MessageDecoder

public class HTTPSOAP11Decoder
extends BaseSAML1MessageDecoder

SAML 1.1 HTTP SOAP 1.1 binding decoder.


Constructor Summary
HTTPSOAP11Decoder(SAMLArtifactMap map)
          Constructor.
HTTPSOAP11Decoder(SAMLArtifactMap map, org.opensaml.xml.parse.ParserPool pool)
          Constructor.
 
Method Summary
protected  void checkUnderstoodSOAPHeaders(java.util.List<org.opensaml.xml.XMLObject> headers)
          Checks that, if any SOAP headers, require understand that they are in the understood header list.
protected  void doDecode(org.opensaml.ws.message.MessageContext messageContext)
          
 java.lang.String getBindingURI()
          Gets the SAML binding URI supported by this decoder.
 java.util.List<javax.xml.namespace.QName> getUnderstoodHeaders()
          Gets the SOAP header names that are understood by the application.
protected  boolean isIntendedDestinationEndpointURIRequired(SAMLMessageContext samlMsgCtx)
          Determine whether the binding implemented by the decoder requires the presence within the message of information indicating the intended message destination endpoint URI.
 void setUnderstoodHeaders(java.util.List<javax.xml.namespace.QName> headerNames)
          Sets the SOAP header names that are understood by the application.
 
Methods inherited from class org.opensaml.saml1.binding.decoding.BaseSAML1MessageDecoder
decode, extractAssertionArtifactInfo, extractAttributeQueryInfo, extractAuthorizationDecisionQueryInfo, extractRequestInfo, extractResponseInfo, getArtifactMap, getIntendedDestinationEndpointURI, getUseQueryResourceAsEntityId, populateMessageContext, populateMessageIdIssueInstantIssuer, populateRelyingPartyMetadata, setUseQueryResourceAsEntityId
 
Methods inherited from class org.opensaml.common.binding.decoding.BaseSAMLMessageDecoder
checkEndpointURI, compareEndpointURIs, getActualReceiverEndpointURI, isMessageSigned
 
Methods inherited from class org.opensaml.ws.message.decoder.BaseMessageDecoder
getParserPool, setParserPool, unmarshallMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPSOAP11Decoder

public HTTPSOAP11Decoder(SAMLArtifactMap map)
Constructor.

Parameters:
map - Artifact to SAML map

HTTPSOAP11Decoder

public HTTPSOAP11Decoder(SAMLArtifactMap map,
                         org.opensaml.xml.parse.ParserPool pool)
Constructor.

Parameters:
map - used to map artifacts to SAML
pool - parser pool used to deserialize messages
Method Detail

getBindingURI

public java.lang.String getBindingURI()
Gets the SAML binding URI supported by this decoder.

Returns:
SAML binding URI supported by this decoder

getUnderstoodHeaders

public java.util.List<javax.xml.namespace.QName> getUnderstoodHeaders()
Gets the SOAP header names that are understood by the application.

Returns:
SOAP header names that are understood by the application

setUnderstoodHeaders

public void setUnderstoodHeaders(java.util.List<javax.xml.namespace.QName> headerNames)
Sets the SOAP header names that are understood by the application.

Parameters:
headerNames - SOAP header names that are understood by the application

doDecode

protected void doDecode(org.opensaml.ws.message.MessageContext messageContext)
                 throws org.opensaml.ws.message.decoder.MessageDecodingException

Specified by:
doDecode in class org.opensaml.ws.message.decoder.BaseMessageDecoder
Throws:
org.opensaml.ws.message.decoder.MessageDecodingException

checkUnderstoodSOAPHeaders

protected void checkUnderstoodSOAPHeaders(java.util.List<org.opensaml.xml.XMLObject> headers)
                                   throws org.opensaml.ws.message.decoder.MessageDecodingException
Checks that, if any SOAP headers, require understand that they are in the understood header list.

Parameters:
headers - SOAP headers to check
Throws:
org.opensaml.ws.message.decoder.MessageDecodingException - thrown if a SOAP header requires understanding but is not understood by the decoder

isIntendedDestinationEndpointURIRequired

protected boolean isIntendedDestinationEndpointURIRequired(SAMLMessageContext samlMsgCtx)
Determine whether the binding implemented by the decoder requires the presence within the message of information indicating the intended message destination endpoint URI.

Specified by:
isIntendedDestinationEndpointURIRequired in class BaseSAMLMessageDecoder
Parameters:
samlMsgCtx - current SAML message context
Returns:
true if the intended message destination endpoint is required, false if not


Copyright © 2006-2009 Internet2. All Rights Reserved.