T - the type of CredHub credentialpublic class CredentialDetails<T> extends CredentialSummary
name, versionCreatedAt| Constructor and Description |
|---|
CredentialDetails()
Create a
CredentialDetails. |
CredentialDetails(String id,
CredentialName name,
CredentialType credentialType,
T value)
Create a
CredentialDetails from the provided parameters. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
CredentialType |
getCredentialType()
Get the client-provided
CredentialType of the credential. |
String |
getId()
Get the the CredHub-generated unique ID of the credential.
|
T |
getValue()
Get the client-provided value for the credential.
|
int |
hashCode() |
String |
toString() |
getName, getVersionCreatedAtpublic CredentialDetails()
CredentialDetails.public CredentialDetails(String id, CredentialName name, CredentialType credentialType, T value)
CredentialDetails from the provided parameters. Intended for
internal use. Clients will get CredentialDetails objects populated from
CredHub responses.id - the CredHub-generated unique ID of the credentialname - the client-provided name of the credentialcredentialType - the CredentialType of the credentialvalue - the client-provided value for the credential createdpublic String getId()
public CredentialType getCredentialType()
CredentialType of the credential.public T getValue()
public boolean equals(Object o)
equals in class CredentialSummarypublic int hashCode()
hashCode in class CredentialSummarypublic String toString()
toString in class CredentialSummary