Class LibertyHTTPSOAP11Decoder
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
org.opensaml.messaging.decoder.AbstractMessageDecoder
org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
org.opensaml.messaging.decoder.servlet.BaseHttpServletRequestXMLMessageDecoder
net.shibboleth.idp.saml.saml2.profile.delegation.messaging.impl.LibertyHTTPSOAP11Decoder
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,UnmodifiableComponent
,MessageDecoder
,HttpServletRequestMessageDecoder
,SAMLMessageDecoder
public class LibertyHTTPSOAP11Decoder
extends BaseHttpServletRequestXMLMessageDecoder
implements SAMLMessageDecoder
Decoder for Liberty ID-WSF 2.0 SOAP 1.1 HTTP binding carrying SAML protocol messages
used in SAML delegation.
This decoder takes a mandatory MessageHandler
instance which is used to determine
and populate the message that is returned as the MessageContext.getMessage()
.
A SOAP message-oriented message exchange style might just populate the Envelope as the message. An application-specific payload-oriented message exchange would handle a specific type of payload structure.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BindingDescriptor
OptionalBindingDescriptor
to inject intoSAMLBindingContext
created.private MessageHandler
Message handler to use in processing the message body.private final org.slf4j.Logger
Class logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doDecode()
protected void
Get an optionalBindingDescriptor
to inject intoSAMLBindingContext
created.Get the configured body handler MessageHandler.protected XMLObject
protected void
populateBindingContext
(MessageContext messageContext) Populate the context which carries information specific to this binding.void
setBindingDescriptor
(BindingDescriptor descriptor) Set an optionalBindingDescriptor
to inject intoSAMLBindingContext
created.void
setBodyHandler
(MessageHandler newBodyHandler) Set the configured body handler MessageHandler.Methods inherited from class org.opensaml.messaging.decoder.servlet.BaseHttpServletRequestXMLMessageDecoder
decode, doDestroy, getParserPool, logDecodedMessage, setParserPool, unmarshallMessage, validateHttpRequest
Methods inherited from class org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
getHttpServletRequest, getHttpServletRequestSupplier, setHttpServletRequest, setHttpServletRequestSupplier
Methods inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
getMessageContext, setMessageContext
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent
destroy, isDestroyed
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
Methods inherited from interface org.opensaml.messaging.decoder.MessageDecoder
decode, getMessageContext
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
bindingDescriptor
OptionalBindingDescriptor
to inject intoSAMLBindingContext
created. -
bodyHandler
Message handler to use in processing the message body.
-
-
Constructor Details
-
LibertyHTTPSOAP11Decoder
public LibertyHTTPSOAP11Decoder()Constructor.
-
-
Method Details
-
getBindingURI
- Specified by:
getBindingURI
in interfaceSAMLMessageDecoder
-
getBindingDescriptor
Get an optionalBindingDescriptor
to inject intoSAMLBindingContext
created.- Returns:
- binding descriptor
-
setBindingDescriptor
Set an optionalBindingDescriptor
to inject intoSAMLBindingContext
created.- Parameters:
descriptor
- a binding descriptor
-
getBodyHandler
Get the configured body handler MessageHandler.- Returns:
- Returns the bodyHandler.
-
setBodyHandler
Set the configured body handler MessageHandler.- Parameters:
newBodyHandler
- The bodyHandler to set.
-
doInitialize
- Overrides:
doInitialize
in classBaseHttpServletRequestXMLMessageDecoder
- Throws:
ComponentInitializationException
-
doDecode
- Specified by:
doDecode
in classAbstractMessageDecoder
- Throws:
MessageDecodingException
-
populateBindingContext
Populate the context which carries information specific to this binding.- Parameters:
messageContext
- the current message context
-
getMessageToLog
- Overrides:
getMessageToLog
in classBaseHttpServletRequestXMLMessageDecoder
-