Class HttpBasicAuthCredentials

  • All Implemented Interfaces:
    HttpCredentials

    public class HttpBasicAuthCredentials
    extends Object
    implements HttpCredentials
    HTTP basic authorization support for username and API key
    • Field Detail

      • username

        public final String username
      • apiKey

        public final String apiKey
    • Constructor Detail

      • HttpBasicAuthCredentials

        public HttpBasicAuthCredentials​(String username,
                                        String apiKey)
    • Method Detail

      • getHeader

        public String getHeader()
        Gets the encoded representation of the basic authentication credentials for use in an HTTP Authorization header.
        Specified by:
        getHeader in interface HttpCredentials
        Returns:
        String