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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAccessKeyId()
Returns the CDP access key ID for this credentials object.String
getAccessToken()
Returns the CDP access token for this credentials object.PrivateKey
getPrivateKey()
Returns the private key for this credentials object.Boolean
isValid()
Returns 'true' if the credential is valid, 'false' otherwise.
-
-
-
Method Detail
-
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.
-
-