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
-
Field Summary
-
Constructor Summary
Constructors Constructor Description HttpBasicAuthCredentials(String username, String apiKey)
-
Method Summary
-
Field Details
-
username
-
apiKey
-
-
Constructor Details
-
HttpBasicAuthCredentials
-
-
Method Details
-
getHeader
Gets the encoded representation of the basic authentication credentials for use in an HTTP Authorization header.- Specified by:
getHeader
in interfaceHttpCredentials
- Returns:
- String
-