Class CredentialPermission

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

public class CredentialPermission extends Object
A Permission 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

    • CredentialPermission

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

    • getId

      public String getId()
      Get the CredHub-assigned ID of the permission.
      Returns:
      the permission ID
    • getPath

      public String getPath()
      Get the name of the credential that the permission apply to.
      Returns:
      the credential name
    • getPermission

      public Permission getPermission()
      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