org.opensaml.saml2.binding.decoding
Class HTTPPostDecoder

java.lang.Object
  extended by org.opensaml.ws.message.decoder.BaseMessageDecoder
      extended by org.opensaml.common.binding.decoding.BaseSAMLMessageDecoder
          extended by org.opensaml.saml2.binding.decoding.BaseSAML2MessageDecoder
              extended by org.opensaml.saml2.binding.decoding.HTTPPostDecoder
All Implemented Interfaces:
SAMLMessageDecoder, org.opensaml.ws.message.decoder.MessageDecoder
Direct Known Subclasses:
HTTPPostSimpleSignDecoder

public class HTTPPostDecoder
extends BaseSAML2MessageDecoder

Message decoder implementing the SAML 2.0 HTTP POST binding.


Constructor Summary
HTTPPostDecoder()
          Constructor.
HTTPPostDecoder(org.opensaml.xml.parse.ParserPool pool)
          Constructor.
 
Method Summary
protected  void doDecode(org.opensaml.ws.message.MessageContext messageContext)
          
protected  java.io.InputStream getBase64DecodedMessage(org.opensaml.ws.transport.http.HTTPInTransport transport)
          Gets the Base64 encoded message from the request and decodes it.
 java.lang.String getBindingURI()
          Gets the SAML binding URI supported by this decoder.
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.
 
Methods inherited from class org.opensaml.saml2.binding.decoding.BaseSAML2MessageDecoder
decode, extractEntityId, extractRequestInfo, extractResponseInfo, getIntendedDestinationEndpointURI, populateMessageContext, populateMessageIdIssueInstantIssuer, populateRelyingPartyMetadata
 
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

HTTPPostDecoder

public HTTPPostDecoder()
Constructor.


HTTPPostDecoder

public HTTPPostDecoder(org.opensaml.xml.parse.ParserPool pool)
Constructor.

Parameters:
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

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

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

getBase64DecodedMessage

protected java.io.InputStream getBase64DecodedMessage(org.opensaml.ws.transport.http.HTTPInTransport transport)
                                               throws org.opensaml.ws.message.decoder.MessageDecodingException
Gets the Base64 encoded message from the request and decodes it.

Parameters:
transport - inbound message transport
Returns:
decoded message
Throws:
org.opensaml.ws.message.decoder.MessageDecodingException - thrown if the message does not contain a base64 encoded SAML message


Copyright © 2006-2011 Internet2. All Rights Reserved.