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
ConstructorDescriptionCreate aCredentialDetails
.CredentialDetails
(String id, CredentialName name, CredentialType credentialType, T value) Create aCredentialDetails
from the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the client-providedCredentialType
of the credential.getId()
Get the the CredHub-generated unique ID of the credential.getValue()
Get the client-provided value for the credential.int
hashCode()
toString()
Methods inherited from class org.springframework.credhub.support.CredentialSummary
getName, getVersionCreatedAt
-
Constructor Details
-
CredentialDetails
public CredentialDetails()Create aCredentialDetails
. -
CredentialDetails
Create aCredentialDetails
from the provided parameters. Intended for internal use. Clients will getCredentialDetails
objects populated from CredHub responses.- Parameters:
id
- the CredHub-generated unique ID of the credentialname
- the client-provided name of the credentialcredentialType
- theCredentialType
of 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-providedCredentialType
of the credential.- Returns:
- the credential type
-
getValue
Get the client-provided value for the credential.- Returns:
- the credential value
-
equals
- Overrides:
equals
in classCredentialSummary
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCredentialSummary
-
toString
- Overrides:
toString
in classCredentialSummary
-