Interface CredHubPermissionOperations

All Known Implementing Classes:
CredHubPermissionTemplate

public interface CredHubPermissionOperations
Specifies the interactions with CredHub to add, retrieve, and delete permissions.
Author:
Scott Frederick
  • Method Details

    • getPermissions

      List<Permission> getPermissions(CredentialName name)
      Get the permissions associated with a credential.
      Parameters:
      name - the name of the credential; must not be null
      Returns:
      the collection of permissions associated with the credential
    • addPermissions

      void addPermissions(CredentialName name, Permission... permissions)
      Add permissions to an existing credential.
      Parameters:
      name - the name of the credential; must not be null
      permissions - a collection of permissions to add
    • deletePermission

      void deletePermission(CredentialName name, Actor actor)
      Delete a permission associated with a credential.
      Parameters:
      name - the name of the credential; must not be null
      actor - the actor of the permission; must not be null