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 Summary
Modifier and TypeMethodDescriptionvoid
addPermissions
(CredentialName name, Permission... permissions) Add permissions to an existing credential.void
deletePermission
(CredentialName name, Actor actor) Delete a permission associated with a credential.getPermissions
(CredentialName name) Get the permissions associated with a credential.
-
Method Details
-
getPermissions
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
Add permissions to an existing credential.- Parameters:
name
- the name of the credential; must not be nullpermissions
- a collection of permissions to add
-
deletePermission
Delete a permission associated with a credential.- Parameters:
name
- the name of the credential; must not be nullactor
- the actor of the permission; must not be null
-