org.opensaml.saml2.binding.encoding
public class HandlerChainAwareHTTPSOAP11Encoder extends BaseSAML2MessageEncoder implements HandlerChainAware
Modifier and Type | Field and Description |
---|---|
private SOAPObjectBuilder<Body> |
bodyBuilder
SOAP Body builder.
|
private SOAPObjectBuilder<Envelope> |
envBuilder
SOAP Envelope builder.
|
private org.slf4j.Logger |
log
Class logger.
|
private boolean |
notConfidential
Overrides binding confidentiality.
|
Constructor and Description |
---|
HandlerChainAwareHTTPSOAP11Encoder()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doEncode(MessageContext messageContext) |
protected void |
encodeToTransport(MessageContext messageContext)
Encode the message context to the transport.
|
String |
getBindingURI()
Gets the SAML binding URI supported by this encoder.
|
protected void |
invokeHandlerChain(HandlerChain handlerChain,
MessageContext messageContext)
Invoke a handler chain on the specified message context.
|
boolean |
isNotConfidential()
Returns confidentiality override flag.
|
protected void |
prepareMessageContext(MessageContext messageContext)
Perform final binding-specific processing of message context and prepare it for encoding
to the transport.
|
protected void |
preprocessTransport(MessageContext messageContext)
This implementation performs the following actions on the context's
HTTPOutTransport :
Adds the HTTP header: "Cache-control: no-cache, no-store"
Adds the HTTP header: "Pragma: no-cache"
Sets the character encoding to: "UTF-8"
Sets the content type to: "text/xml"
Sets the SOAPAction HTTP header
|
protected void |
processOutboundHandlerChain(MessageContext messageContext)
Process the outbound
HandlerChain for the message context, if any. |
boolean |
providesMessageConfidentiality(MessageContext messageContext) |
boolean |
providesMessageIntegrity(MessageContext messageContext) |
void |
setNotConfidential(boolean flag)
Sets confidentiality override flag.
|
checkRelayState, getAllowedURLSchemes, getEndpointURL, setAllowedURLSchemes, setResponseDestination, signMessage
encode, logEncodedMessage, marshallMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encode
private final org.slf4j.Logger log
private SOAPObjectBuilder<Envelope> envBuilder
private SOAPObjectBuilder<Body> bodyBuilder
private boolean notConfidential
public HandlerChainAwareHTTPSOAP11Encoder()
public boolean isNotConfidential()
public void setNotConfidential(boolean flag)
flag
- override flagpublic String getBindingURI()
getBindingURI
in interface SAMLMessageEncoder
public boolean providesMessageConfidentiality(MessageContext messageContext) throws MessageEncodingException
providesMessageConfidentiality
in interface MessageEncoder
MessageEncodingException
public boolean providesMessageIntegrity(MessageContext messageContext) throws MessageEncodingException
providesMessageIntegrity
in interface MessageEncoder
MessageEncodingException
protected void doEncode(MessageContext messageContext) throws MessageEncodingException
doEncode
in class BaseMessageEncoder
MessageEncodingException
protected void prepareMessageContext(MessageContext messageContext) throws MessageEncodingException
This should include constructing and populating all binding-specific structure and data that needs to be reflected by the message context's properties.
This method is called prior to processOutboundHandlerChain(MessageContext)
.
messageContext
- the message context to processMessageEncodingException
- thrown if there is a problem preparing the message context
for encodingprotected void encodeToTransport(MessageContext messageContext) throws MessageEncodingException
messageContext
- the message context to processMessageEncodingException
- thrown if there is a problem encoding the message context
to the transportprotected void preprocessTransport(MessageContext messageContext) throws MessageEncodingException
This implementation performs the following actions on the context's HTTPOutTransport
:
messageContext
- the current message context being processedMessageEncodingException
- thrown if there is a problem preprocessing the transportprotected void processOutboundHandlerChain(MessageContext messageContext) throws MessageEncodingException
HandlerChain
for the message context, if any.messageContext
- the message context to processMessageEncodingException
- thrown if a handler indicates a problem handling the messageprotected void invokeHandlerChain(HandlerChain handlerChain, MessageContext messageContext) throws HandlerException
handlerChain
- the handle chain to invokemessageContext
- the message context to processHandlerException
- if handler chain encountered a problem handling the message contextCopyright © 1999-2013 JBoss by Red Hat. All Rights Reserved.