Class Pac4jHTTPRedirectDeflateDecoder

java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.decoder.AbstractMessageDecoder
org.pac4j.saml.transport.AbstractPac4jDecoder
org.pac4j.saml.transport.Pac4jHTTPRedirectDeflateDecoder
All Implemented Interfaces:
net.shibboleth.shared.component.Component, net.shibboleth.shared.component.DestructableComponent, net.shibboleth.shared.component.InitializableComponent, net.shibboleth.shared.component.UnmodifiableComponent, org.opensaml.messaging.decoder.MessageDecoder

public class Pac4jHTTPRedirectDeflateDecoder extends AbstractPac4jDecoder
Decoder for messages sent via HTTP-Redirect binding.
Since:
3.4.0
Author:
Jerome Leleu
  • Field Summary

    Fields inherited from class org.pac4j.saml.transport.AbstractPac4jDecoder

    callContext, parserPool

    Fields inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder

    BASE_PROTOCOL_MESSAGE_LOGGER_CATEGORY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Pac4jHTTPRedirectDeflateDecoder(org.pac4j.core.context.CallContext context)
    Constructor for Pac4jHTTPRedirectDeflateDecoder.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Get the binding of the message context;.
    protected InputStream
    inflate(byte[] input)
    inflate.
    protected InputStream
    internalInflate(byte[] input, Inflater inflater)
    internalInflate.

    Methods inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder

    decode, getMessageContext, getMessageToLog, getProtocolMessageLogger, getProtocolMessageLoggerSubCategory, logDecodedMessage, serializeMessageForLogging, setMessageContext, setProtocolMessageLoggerSubCategory

    Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent

    checkComponentActive, checkSetterPreconditions, destroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, 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.shared.component.DestructableComponent

    destroy, isDestroyed

    Methods inherited from interface net.shibboleth.shared.component.InitializableComponent

    initialize, isInitialized
  • Constructor Details

    • Pac4jHTTPRedirectDeflateDecoder

      public Pac4jHTTPRedirectDeflateDecoder(org.pac4j.core.context.CallContext context)

      Constructor for Pac4jHTTPRedirectDeflateDecoder.

      Parameters:
      context - a CallContext object
  • Method Details

    • doDecode

      protected void doDecode() throws org.opensaml.messaging.decoder.MessageDecodingException
      Specified by:
      doDecode in class org.opensaml.messaging.decoder.AbstractMessageDecoder
      Throws:
      org.opensaml.messaging.decoder.MessageDecodingException
    • inflate

      protected InputStream inflate(byte[] input) throws org.opensaml.messaging.decoder.MessageDecodingException

      inflate.

      Parameters:
      input - an array of
      invalid reference
      byte
      objects
      Returns:
      a InputStream object
      Throws:
      org.opensaml.messaging.decoder.MessageDecodingException - if any.
    • internalInflate

      protected InputStream internalInflate(byte[] input, Inflater inflater) throws IOException

      internalInflate.

      Parameters:
      input - an array of
      invalid reference
      byte
      objects
      inflater - a Inflater object
      Returns:
      a InputStream object
      Throws:
      IOException - if any.
    • getBindingURI

      public String getBindingURI(SAML2MessageContext messageContext)
      Get the binding of the message context;.
      Specified by:
      getBindingURI in class AbstractPac4jDecoder
      Parameters:
      messageContext - the message context
      Returns:
      the binding URI