Class HttpAuthorization


  • public final class HttpAuthorization
    extends Object
    Represents the value of an HTTP Authorization header.
    • Constructor Detail

      • HttpAuthorization

        public HttpAuthorization​(String scheme,
                                 String parameter)
        Constructs a new HttpAuthorization instance.
        Parameters:
        scheme - Scheme component of an authorization header value.
        parameter - The credentials used for the authorization header value.
        Throws:
        NullPointerException - If either scheme or parameter is null.
        IllegalArgumentException - If either scheme or parameter are an empty string.
    • Method Detail

      • getScheme

        public String getScheme()
        Returns:
        Scheme of the authorization header.
      • getParameter

        public String getParameter()
        Returns:
        Credential of the authorization header.