Class ResolverTestRequestDecoder

    • Field Detail

      • PRINCIPAL_PARAM

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

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

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

      • ResolverTestRequestDecoder

        public ResolverTestRequestDecoder()
    • Method Detail

      • 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