Interface CdpCredentials
- All Known Implementing Classes:
BasicCdpCredentials
public interface CdpCredentials
Provides access to the CDP credentials used for accessing CDP services:
the CDP access key ID and private key, or access token.
(Access Key ID and private key have precedence over access token)
These credentials are used to securely sign requests to CDP services.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the CDP access key ID for this credentials object.Returns the CDP access token for this credentials object.Returns the private key for this credentials object.isValid()
Returns 'true' if the credential is valid, 'false' otherwise.
-
Method Details
-
getAccessKeyId
String getAccessKeyId()Returns the CDP access key ID for this credentials object.- Returns:
- The CDP access key ID for this credentials object.
-
getPrivateKey
PrivateKey getPrivateKey()Returns the private key for this credentials object.- Returns:
- The private key for this credentials object.
-
getAccessToken
String getAccessToken()Returns the CDP access token for this credentials object.- Returns:
- The CDP access token for this credentials object.
-
isValid
Boolean isValid()Returns 'true' if the credential is valid, 'false' otherwise.- Returns:
- 'true' if the credential is valid, 'false' otherwise.
-