org.opensaml.saml2.binding.encoding
Class HTTPSOAP11Encoder

java.lang.Object
  extended by org.opensaml.ws.message.encoder.BaseMessageEncoder
      extended by org.opensaml.saml2.binding.encoding.BaseSAML2MessageEncoder
          extended by org.opensaml.saml2.binding.encoding.HTTPSOAP11Encoder
All Implemented Interfaces:
SAMLMessageEncoder, MessageEncoder

public class HTTPSOAP11Encoder
extends BaseSAML2MessageEncoder

SAML 2.0 SOAP 1.1 over HTTP binding encoder.


Field Summary
private  org.slf4j.Logger log
          Class logger.
 
Constructor Summary
HTTPSOAP11Encoder()
          Constructor.
 
Method Summary
protected  Envelope buildSOAPMessage(SAMLMessageContext samlMsgCtx, SAMLObject samlMessage)
          Builds the SOAP message to be encoded.
protected  Envelope buildSOAPMessage(SAMLObject samlMessage)
          Builds the SOAP message to be encoded.
protected  void doEncode(MessageContext messageContext)
          
 String getBindingURI()
          Gets the SAML binding URI supported by this encoder.
 boolean providesMessageConfidentiality(MessageContext messageContext)
          
 boolean providesMessageIntegrity(MessageContext messageContext)
          
 
Methods inherited from class org.opensaml.saml2.binding.encoding.BaseSAML2MessageEncoder
checkRelayState, getAllowedURLSchemes, getEndpointURL, setAllowedURLSchemes, setResponseDestination, signMessage
 
Methods inherited from class org.opensaml.ws.message.encoder.BaseMessageEncoder
encode, logEncodedMessage, marshallMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.ws.message.encoder.MessageEncoder
encode
 

Field Detail

log

private final org.slf4j.Logger log
Class logger.

Constructor Detail

HTTPSOAP11Encoder

public HTTPSOAP11Encoder()
Constructor.

Method Detail

getBindingURI

public String getBindingURI()
Gets the SAML binding URI supported by this encoder.

Returns:
SAML binding URI supported by this encoder

providesMessageConfidentiality

public boolean providesMessageConfidentiality(MessageContext messageContext)
                                       throws MessageEncodingException

Throws:
MessageEncodingException

providesMessageIntegrity

public boolean providesMessageIntegrity(MessageContext messageContext)
                                 throws MessageEncodingException

Throws:
MessageEncodingException

doEncode

protected void doEncode(MessageContext messageContext)
                 throws MessageEncodingException

Specified by:
doEncode in class BaseMessageEncoder
Throws:
MessageEncodingException

buildSOAPMessage

protected Envelope buildSOAPMessage(SAMLMessageContext samlMsgCtx,
                                    SAMLObject samlMessage)
Builds the SOAP message to be encoded.

If MessageContext.getOutboundMessage() contains a pre-existing SOAP envelope, it will be used. Any existing body content will be removed before the SAML protocol message is added.

Otherwise, a new Envelope will be constructed.

Parameters:
samlMsgCtx - the SAML message context
samlMessage - body of the SOAP message
Returns:
the SOAP message

buildSOAPMessage

protected Envelope buildSOAPMessage(SAMLObject samlMessage)
Builds the SOAP message to be encoded.

Parameters:
samlMessage - body of the SOAP message
Returns:
the SOAP message


Copyright © 1999-2013. All Rights Reserved.