Click or drag to resize

Credentials Class

Helper class for holding a user and password or authorization token, used by both the WSCOnnector and RESTConnector.
Inheritance Hierarchy
SystemObject
  IBM.Watson.DeveloperCloud.UtilitiesCredentials

Namespace:  IBM.Watson.DeveloperCloud.Utilities
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class Credentials

The Credentials type exposes the following members.

Constructors
  NameDescription
Public methodCredentials(String)
Constructor that takes the URL. Used for token authentication.
Public methodCredentials(String, String)
Constructor that takes an authentication token created by the user or an ApiKey. If providing an ApiKey set useApiKey to true.
Public methodCredentials(String, String, String)
Constructor that takes the user name and password.
Top
Properties
  NameDescription
Public propertyApiKey
The Api Key.
Public propertyAuthenticationToken
The autheentication token
Public propertyPassword
The password.
Public propertyUrl
The service endpoint.
Public propertyUsername
The user name.
Top
Methods
  NameDescription
Public methodCreateAuthorization
Create basic authentication header data for REST requests.
Public methodHasApiKey
Do we have an ApiKey?
Public methodHasAuthorizationToken
Do we have an authentication token?
Public methodHasCredentials
Do we have credentials?
Top
See Also