Class HTTPRedirectDeflateDecoder
- 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
-
- org.opensaml.saml.saml2.binding.decoding.impl.HTTPRedirectDeflateDecoder
-
- All Implemented Interfaces:
net.shibboleth.utilities.java.support.component.Component,net.shibboleth.utilities.java.support.component.DestructableComponent,net.shibboleth.utilities.java.support.component.InitializableComponent,net.shibboleth.utilities.java.support.component.UnmodifiableComponent,org.opensaml.messaging.decoder.MessageDecoder,org.opensaml.messaging.decoder.servlet.HttpServletRequestMessageDecoder,org.opensaml.saml.common.binding.decoding.SAMLMessageDecoder
public class HTTPRedirectDeflateDecoder extends org.opensaml.messaging.decoder.servlet.BaseHttpServletRequestXMLMessageDecoder implements org.opensaml.saml.common.binding.decoding.SAMLMessageDecoderSAML 2.0 HTTP Redirect decoder using the DEFLATE encoding method. This decoder only supports DEFLATE compression.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classHTTPRedirectDeflateDecoder.NoWrapAutoEndInflaterInputStreamA subclass ofInflaterInputStreamwhich defaults in a no-wrapInflaterinstance and closes it when the stream is closed.
-
Field Summary
Fields Modifier and Type Field Description private org.opensaml.saml.common.binding.BindingDescriptorbindingDescriptorOptionalBindingDescriptorto inject intoSAMLBindingContextcreated.private LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description HTTPRedirectDeflateDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InputStreamdecodeMessage(String message)Base64 decodes the SAML message and then decompresses the message.protected voiddoDecode()org.opensaml.saml.common.binding.BindingDescriptorgetBindingDescriptor()Get an optionalBindingDescriptorto inject intoSAMLBindingContextcreated.StringgetBindingURI()protected voidpopulateBindingContext(org.opensaml.messaging.context.MessageContext messageContext)Populate the context which carries information specific to this binding.voidsetBindingDescriptor(org.opensaml.saml.common.binding.BindingDescriptor descriptor)Set an optionalBindingDescriptorto inject intoSAMLBindingContextcreated.-
Methods inherited from class org.opensaml.messaging.decoder.servlet.BaseHttpServletRequestXMLMessageDecoder
decode, doDestroy, doInitialize, getMessageToLog, getParserPool, logDecodedMessage, setParserPool, unmarshallMessage, validateHttpRequest
-
Methods inherited from class org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
getHttpServletRequest, setHttpServletRequest
-
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
-
-
-
-
Field Detail
-
log
@Nonnull private final Logger log
Class logger.
-
bindingDescriptor
@Nullable private org.opensaml.saml.common.binding.BindingDescriptor bindingDescriptor
OptionalBindingDescriptorto inject intoSAMLBindingContextcreated.
-
-
Method Detail
-
getBindingURI
@Nonnull @NotEmpty public String getBindingURI()
- Specified by:
getBindingURIin interfaceorg.opensaml.saml.common.binding.decoding.SAMLMessageDecoder
-
getBindingDescriptor
@Nullable public org.opensaml.saml.common.binding.BindingDescriptor getBindingDescriptor()
Get an optionalBindingDescriptorto inject intoSAMLBindingContextcreated.- Returns:
- binding descriptor
-
setBindingDescriptor
public void setBindingDescriptor(@Nullable org.opensaml.saml.common.binding.BindingDescriptor descriptor)Set an optionalBindingDescriptorto inject intoSAMLBindingContextcreated.- Parameters:
descriptor- a binding descriptor
-
doDecode
protected void doDecode() throws org.opensaml.messaging.decoder.MessageDecodingException- Specified by:
doDecodein classorg.opensaml.messaging.decoder.AbstractMessageDecoder- Throws:
org.opensaml.messaging.decoder.MessageDecodingException
-
decodeMessage
protected InputStream decodeMessage(String message) throws org.opensaml.messaging.decoder.MessageDecodingException
Base64 decodes the SAML message and then decompresses the message.- Parameters:
message- Base64 encoded, DEFALTE compressed, SAML message- Returns:
- the SAML message
- Throws:
org.opensaml.messaging.decoder.MessageDecodingException- thrown if the message can not be decoded
-
populateBindingContext
protected void populateBindingContext(org.opensaml.messaging.context.MessageContext messageContext)
Populate the context which carries information specific to this binding.- Parameters:
messageContext- the current message context
-
-