Package com.softlayer.api.http
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
-
-
Constructor Summary
Constructors Constructor Description HttpBasicAuthCredentials(String username, String apiKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHeader()Gets the encoded representation of the basic authentication credentials for use in an HTTP Authorization header.
-
-
-
Method Detail
-
getHeader
public String getHeader()
Gets the encoded representation of the basic authentication credentials for use in an HTTP Authorization header.- Specified by:
getHeaderin interfaceHttpCredentials- Returns:
- String
-
-