org.opensaml.saml1.binding.encoding
Class HTTPSOAP11Encoder

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

public class HTTPSOAP11Encoder
extends BaseSAML1MessageEncoder

SAML 1.X HTTP SOAP 1.1 binding message 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)
          
protected  void validateMessageContent(MessageContext messageContext)
          Validates that the message context is a SAMLMessageContext and that its outbound transport is HTTP.
 
Methods inherited from class org.opensaml.saml1.binding.encoding.BaseSAML1MessageEncoder
getAllowedURLSchemes, getEndpointURL, setAllowedURLSchemes, 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

validateMessageContent

protected void validateMessageContent(MessageContext messageContext)
                               throws MessageEncodingException
Validates that the message context is a SAMLMessageContext and that its outbound transport is HTTP.

Parameters:
messageContext - current message context
Throws:
MessageEncodingException - thrown if the message context conditions are not met


Copyright © 1999-2013. All Rights Reserved.