Class HTTPArtifactDecoder

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, UnmodifiableComponent, MessageDecoder, HttpServletRequestMessageDecoder, SAMLMessageDecoder

public class HTTPArtifactDecoder extends BaseHttpServletRequestXMLMessageDecoder implements SAMLMessageDecoder
SAML 1.X HTTP Artifact message decoder. NOTE: This decoder is not yet implemented.
  • Field Details

  • Constructor Details

    • HTTPArtifactDecoder

      public HTTPArtifactDecoder()
  • Method Details

    • getBindingURI

      @Nonnull @NotEmpty public String getBindingURI()
      Gets the SAML binding URI supported by this decoder.
      Specified by:
      getBindingURI in interface SAMLMessageDecoder
      Returns:
      SAML binding URI supported by this decoder
    • getBindingDescriptor

      @Nullable public BindingDescriptor getBindingDescriptor()
      Get an optional BindingDescriptor to inject into SAMLBindingContext created.
      Returns:
      binding descriptor
    • setBindingDescriptor

      public void setBindingDescriptor(@Nullable BindingDescriptor descriptor)
      Set an optional BindingDescriptor to inject into SAMLBindingContext created.
      Parameters:
      descriptor - a binding descriptor
    • doDecode

      protected void doDecode() throws MessageDecodingException
      Performs the decoding logic. By the time this is called, this decoder has already been initialized and checked to ensure that it has not been destroyed.
      Specified by:
      doDecode in class AbstractMessageDecoder
      Throws:
      MessageDecodingException - thrown if there is a problem decoding the message
    • decodeTarget

      protected void decodeTarget(MessageContext messageContext, javax.servlet.http.HttpServletRequest request) throws MessageDecodingException
      Decodes the TARGET parameter and adds it to the message context.
      Parameters:
      messageContext - current message context
      request - current servlet request
      Throws:
      MessageDecodingException - thrown if there is a problem decoding the TARGET parameter.
    • processArtifacts

      protected void processArtifacts(MessageContext messageContext, javax.servlet.http.HttpServletRequest request) throws MessageDecodingException
      Process the incoming artifacts by decoding the artifacts, dereferencing them from the artifact source and storing the resulting response (with assertions) in the message context.
      Parameters:
      messageContext - current message context
      request - current servlet request
      Throws:
      MessageDecodingException - thrown if there is a problem decoding or dereferencing the artifacts
    • populateBindingContext

      protected void populateBindingContext(MessageContext messageContext)
      Populate the context which carries information specific to this binding.
      Parameters:
      messageContext - the current message context