Class CredentialPermissions

java.lang.Object
org.springframework.credhub.support.CredentialPermissions

public class CredentialPermissions extends Object
A collection of Permissions associated with a credential. Clients don't typically instantiate objects of this type, but will receive them in response to write and retrieve requests.
Author:
Scott Frederick
  • Constructor Details

    • CredentialPermissions

      public CredentialPermissions(CredentialName credentialName, Permission... permissions)
      Create a CredentialPermissions from the provided parameters. Intended for internal use. Clients will get CredentialPermissions objects populated from CredHub responses.
      Parameters:
      credentialName - the name of the credential that the permissions will apply to
      permissions - a collection of Permissions
  • Method Details

    • getCredentialName

      public String getCredentialName()
      Get the name of the credential that the permissions apply to.
      Returns:
      the credential name
    • getPermissions

      public List<Permission> getPermissions()
      Get the collection of Permissions.
      Returns:
      the collection of Permissions
    • 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