Credentials Class |
Namespace: IBM.Watson.DeveloperCloud.Utilities
public class Credentials
The Credentials type exposes the following members.
| Name | Description | |
|---|---|---|
| Credentials(String) |
Constructor that takes the URL. Used for token authentication.
| |
| Credentials(String, String) |
Constructor that takes an authentication token created by the user or an ApiKey. If providing an ApiKey
set useApiKey to true.
| |
| Credentials(String, String, String) |
Constructor that takes the user name and password.
|
| Name | Description | |
|---|---|---|
| ApiKey |
The Api Key.
| |
| AuthenticationToken |
The autheentication token
| |
| Password |
The password.
| |
| Url |
The service endpoint.
| |
| Username |
The user name.
|
| Name | Description | |
|---|---|---|
| CreateAuthorization |
Create basic authentication header data for REST requests.
| |
| HasApiKey |
Do we have an ApiKey?
| |
| HasAuthorizationToken |
Do we have an authentication token?
| |
| HasCredentials |
Do we have credentials?
|