Class CredentialDetails<T>
java.lang.Object
org.springframework.credhub.support.CredentialSummary
org.springframework.credhub.support.CredentialDetails<T>
- Type Parameters:
T- the type of CredHub credential
- Direct Known Subclasses:
CertificateCredentialDetails
The details of a credential that has been written to CredHub.
Clients don't typically instantiate objects of this type, but will receive them in
response to write and retrieve requests. The id and name fields
can be used in subsequent requests.
- Author:
- Scott Frederick
-
Field Summary
Fields inherited from class org.springframework.credhub.support.CredentialSummary
name, versionCreatedAt -
Constructor Summary
ConstructorsConstructorDescriptionCreate aCredentialDetails.CredentialDetails(String id, CredentialName name, CredentialType credentialType, T value) Create aCredentialDetailsfrom the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the client-providedCredentialTypeof the credential.getId()Get the the CredHub-generated unique ID of the credential.getValue()Get the client-provided value for the credential.inthashCode()toString()Methods inherited from class org.springframework.credhub.support.CredentialSummary
getName, getVersionCreatedAt
-
Constructor Details
-
CredentialDetails
public CredentialDetails()Create aCredentialDetails. -
CredentialDetails
Create aCredentialDetailsfrom the provided parameters. Intended for internal use. Clients will getCredentialDetailsobjects populated from CredHub responses.- Parameters:
id- the CredHub-generated unique ID of the credentialname- the client-provided name of the credentialcredentialType- theCredentialTypeof the credentialvalue- the client-provided value for the credential created
-
-
Method Details
-
getId
Get the the CredHub-generated unique ID of the credential.- Returns:
- the credential ID
-
getCredentialType
Get the client-providedCredentialTypeof the credential.- Returns:
- the credential type
-
getValue
Get the client-provided value for the credential.- Returns:
- the credential value
-
equals
- Overrides:
equalsin classCredentialSummary
-
hashCode
public int hashCode()- Overrides:
hashCodein classCredentialSummary
-
toString
- Overrides:
toStringin classCredentialSummary
-