Class CredentialSummary

java.lang.Object
org.springframework.credhub.support.CredentialSummary
Direct Known Subclasses:
CredentialDetails

public class CredentialSummary extends Object
A summary 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 name field can be used in subsequent requests.
Author:
Scott Frederick
  • Field Details

    • name

      protected final @Nullable CredentialName name
      The name of the credential.
    • versionCreatedAt

      protected final @Nullable Date versionCreatedAt
      The date the credential version was created.
  • Constructor Details

    • CredentialSummary

      public CredentialSummary(CredentialName name)
      Create a CredentialSummary from the provided parameters. Intended for internal use. Clients will get CredentialSummary objects populated from CredHub responses.
      Parameters:
      name - the name of the credential
  • Method Details

    • getName

      public @Nullable CredentialName getName()
      Get the client-provided name of the credential.
      Returns:
      the credential name
    • getVersionCreatedAt

      public @Nullable Date getVersionCreatedAt()
      Get the CredHub-generated Date when this version of the credential was created.
      Returns:
      the credential version creation Date
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object