public class HandlerChainAwareHTTPSOAP11Encoder extends BaseSAML2MessageEncoder implements HandlerChainAware
コンストラクタと説明 |
---|
HandlerChainAwareHTTPSOAP11Encoder()
Constructor.
|
修飾子とタイプ | メソッドと説明 |
---|---|
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, signMessage
encode, logEncodedMessage, marshallMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encode
public HandlerChainAwareHTTPSOAP11Encoder()
public boolean isNotConfidential()
public void setNotConfidential(boolean flag)
flag
- override flagpublic String getBindingURI()
getBindingURI
インタフェース内 SAMLMessageEncoder
public boolean providesMessageConfidentiality(MessageContext messageContext) throws MessageEncodingException
providesMessageConfidentiality
インタフェース内 MessageEncoder
messageContext
- 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
インタフェース内 MessageEncoder
messageContext
- 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
クラス内 BaseMessageEncoder
messageContext
- 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 © 2012. All Rights Reserved.