Helper class for holding a user and password or authorization token, used by both the WSCOnnector and RESTConnector.
More...
Helper class for holding a user and password or authorization token, used by both the WSCOnnector and RESTConnector.
IBM.Watson.DeveloperCloud.Utilities.Credentials.Credentials |
( |
string |
url = null | ) |
|
|
inline |
Constructor that takes the URL. Used for token authentication.
IBM.Watson.DeveloperCloud.Utilities.Credentials.Credentials |
( |
string |
username, |
|
|
string |
password, |
|
|
string |
url = null |
|
) |
| |
|
inline |
Constructor that takes the user name and password.
- Parameters
-
username | The string containing the user name. |
password | A string containing the password. |
url | The service endpoint. |
IBM.Watson.DeveloperCloud.Utilities.Credentials.Credentials |
( |
string |
apiKey, |
|
|
string |
url = null |
|
) |
| |
|
inline |
Constructor that takes an authentication token created by the user or an ApiKey. If providing an ApiKey set useApiKey to true.
- Parameters
-
string IBM.Watson.DeveloperCloud.Utilities.Credentials.CreateAuthorization |
( |
| ) |
|
|
inline |
Create basic authentication header data for REST requests.
- Returns
- The authentication data base64 encoded.
bool IBM.Watson.DeveloperCloud.Utilities.Credentials.HasApiKey |
( |
| ) |
|
|
inline |
Do we have an ApiKey?
- Returns
- True if the class has a Authentication Token
bool IBM.Watson.DeveloperCloud.Utilities.Credentials.HasAuthorizationToken |
( |
| ) |
|
|
inline |
Do we have an authentication token?
- Returns
- True if the class has a Authentication Token
bool IBM.Watson.DeveloperCloud.Utilities.Credentials.HasCredentials |
( |
| ) |
|
|
inline |
Do we have credentials?
- Returns
- true if the class has a username and password.
string IBM.Watson.DeveloperCloud.Utilities.Credentials.ApiKey |
|
getset |
string IBM.Watson.DeveloperCloud.Utilities.Credentials.AuthenticationToken |
|
getset |
The autheentication token
string IBM.Watson.DeveloperCloud.Utilities.Credentials.Password |
|
getset |
string IBM.Watson.DeveloperCloud.Utilities.Credentials.Url |
|
getset |
string IBM.Watson.DeveloperCloud.Utilities.Credentials.Username |
|
getset |
The documentation for this class was generated from the following file: