Class HttpBasicAuthCredentials

java.lang.Object
com.softlayer.api.http.HttpBasicAuthCredentials
All Implemented Interfaces:
HttpCredentials

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

    • username

      public final String username
    • apiKey

      public final String apiKey
  • Constructor Details

    • HttpBasicAuthCredentials

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

    • 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