public class HandlerChainAwareHTTPSOAP11Encoder extends BaseSAML2MessageEncoder implements HandlerChainAware
| Constructor and Description |
|---|
HandlerChainAwareHTTPSOAP11Encoder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doEncode(MessageContext messageContext)
Encodes the outbound message onto the outbound transport.
|
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)
Indicates whether this encoder, given the current message context, provides end-to-end message confidentiality.
|
boolean |
providesMessageIntegrity(MessageContext messageContext)
Indicates whether this encoder, given the current message context, provides end-to-end message integrity.
|
void |
setNotConfidential(boolean flag)
Sets confidentiality override flag.
|
checkRelayState, getAllowedURLSchemes, getEndpointURL, setAllowedURLSchemes, setResponseDestination, signMessageencode, logEncodedMessage, marshallMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencodepublic HandlerChainAwareHTTPSOAP11Encoder()
public boolean isNotConfidential()
public void setNotConfidential(boolean flag)
flag - override flagpublic String getBindingURI()
getBindingURI in interface SAMLMessageEncoderpublic boolean providesMessageConfidentiality(MessageContext messageContext) throws MessageEncodingException
providesMessageConfidentiality in interface MessageEncodermessageContext - the current message contextMessageEncodingException - thrown if the encoder encounter an error while attempt to evaluate its ability
to provide message confidentiality.public boolean providesMessageIntegrity(MessageContext messageContext) throws MessageEncodingException
providesMessageIntegrity in interface MessageEncodermessageContext - the current message contextMessageEncodingException - thrown if the encoder encounter an error while attempt to evaluate its ability
to provide message integrity.protected void doEncode(MessageContext messageContext) throws MessageEncodingException
doEncode in class BaseMessageEncodermessageContext - current message contextMessageEncodingException - thrown if there is a problem encoding the messageprotected 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 © 2018 JBoss by Red Hat. All rights reserved.