Class ResolverTestRequestDecoder

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

public class ResolverTestRequestDecoder extends AbstractHttpServletRequestMessageDecoder
Decodes an incoming resolver test message.
  • Field Details

    • PRINCIPAL_PARAM

      @Nonnull @NotEmpty public static final String PRINCIPAL_PARAM
      Name of the query parameter carrying the subject name: "principal" .
      See Also:
    • REQUESTER_ID_PARAM

      @Nonnull @NotEmpty public static final String REQUESTER_ID_PARAM
      Name of the query parameter carrying the requesterID: "requester" .
      See Also:
    • ACS_INDEX_PARAM

      @Nonnull @NotEmpty public static final String ACS_INDEX_PARAM
      Name of the query parameter carrying the ACS index: "acsIndex" .
      See Also:
    • PROTOCOL_PARAM

      @Nonnull @NotEmpty public static final String PROTOCOL_PARAM
      Name of the query parameter carrying the protocol: "protocol" .
      See Also:
    • SAML1_PARAM

      @Nonnull @NotEmpty public static final String SAML1_PARAM
      Name of the query parameter for the SAML 1 protocol: "saml1" .
      See Also:
    • SAML2_PARAM

      @Nonnull @NotEmpty public static final String SAML2_PARAM
      Name of the query parameter for the SAML 2 protocol: "saml2" .
      See Also:
    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
  • Constructor Details

    • ResolverTestRequestDecoder

      public ResolverTestRequestDecoder()
  • Method Details

    • doDecode

      protected void doDecode() throws MessageDecodingException
      Specified by:
      doDecode in class AbstractMessageDecoder
      Throws:
      MessageDecodingException
    • getPrincipal

      @Nonnull @NotEmpty protected String getPrincipal(@Nonnull javax.servlet.http.HttpServletRequest request) throws MessageDecodingException
      Get the name of the subject.
      Parameters:
      request - current HTTP request
      Returns:
      the name of the subject
      Throws:
      MessageDecodingException - thrown if the request does not contain a subject name
    • getRequesterId

      @Nonnull @NotEmpty protected String getRequesterId(@Nonnull javax.servlet.http.HttpServletRequest request) throws MessageDecodingException
      Get the ID of the requester.
      Parameters:
      request - current HTTP request
      Returns:
      the ID of the requester
      Throws:
      MessageDecodingException - thrown if the request does not contain a requester name
    • getIndex

      @Nullable protected Integer getIndex(@Nonnull javax.servlet.http.HttpServletRequest request)
      Get the ACS index.
      Parameters:
      request - current HTTP request
      Returns:
      the ACS index, or null
    • getProtocol

      @Nullable protected String getProtocol(@Nonnull javax.servlet.http.HttpServletRequest request)
      Get the protocol.
      Parameters:
      request - current HTTP request
      Returns:
      the protocol, or null