Interface Response



  • public interface Response
    This class represents the response that demands authentication.
    • Field Detail

      • AUTHENTICATION_HEADER_VALUE_SPLIT_PATTERN_PART

        static final String AUTHENTICATION_HEADER_VALUE_SPLIT_PATTERN_PART
        See Also:
        Constant Field Values
      • AUTHENTICATION_HEADER_VALUE_PATTERN

        static final Pattern AUTHENTICATION_HEADER_VALUE_PATTERN
      • AUTH_SCHEME_PATTERN

        static final Pattern AUTH_SCHEME_PATTERN
      • AUTH_SCHEME_AND_TOKEN68_PATTERN

        static final Pattern AUTH_SCHEME_AND_TOKEN68_PATTERN
      • AUTH_SCHEME_AND_PARAM_PATTERN

        static final Pattern AUTH_SCHEME_AND_PARAM_PATTERN
      • AUTH_PARAM_PATTERN

        static final Pattern AUTH_PARAM_PATTERN
      • TOKEN_PATTERN

        static final Pattern TOKEN_PATTERN
      • QUOTED_PAIR_PATTERN

        static final Pattern QUOTED_PAIR_PATTERN
      • AUTHENTICATION_HEADER_VALUE_SPLIT_PATTERN

        static final Pattern AUTHENTICATION_HEADER_VALUE_SPLIT_PATTERN
      • WHITESPACE_SPLIT_PATTERN

        static final Pattern WHITESPACE_SPLIT_PATTERN
      • AUTH_PARAM_SPLIT_PATTERN

        static final Pattern AUTH_PARAM_SPLIT_PATTERN
      • QUOTED_STRING_AUTH_PARAM_AT_END_PATTERN

        static final Pattern QUOTED_STRING_AUTH_PARAM_AT_END_PATTERN
    • Method Detail

      • getCode

        int getCode​()
        The response code.
        Returns:
        The response code.
      • getMessage

        String getMessage​()
        The response message.
        Returns:
        The response message.
      • getHeaders

        Map<String,List<String>> getHeaders​()
        The headers of the response.
        Returns:
        The headers of the response.
      • getHeaders

        default List<String> getHeaders​(String headerName)
        The headers of the response with the given name.
        Parameters:
        headerName - The name of the header for which to return the values.
        Returns:
        The headers of the response with the given name.
      • getChallenges

        default Stream<Challenge> getChallenges​()
        Gets the RFC 7235 authentication challenges of this response.
        Returns:
        The authentication challenges of this response.
      • getChallenges

        default Stream<Challenge> getChallenges​(String authenticationScheme)
        Gets the RFC 7235 authentication challenges for the given scheme of this response.
        Parameters:
        authenticationScheme - The authentication scheme to get the challenges for.
        Returns:
        The authentication challenges of this response for the given scheme.