public class CredHubPermissionTemplate extends Object implements CredHubPermissionOperations
| Constructor and Description |
|---|
CredHubPermissionTemplate(CredHubOperations credHubOperations)
Create a new
CredHubPermissionTemplate. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPermissions(CredentialName name,
Permission... permissions)
Add permissions to an existing credential.
|
void |
deletePermission(CredentialName name,
Actor actor)
Delete a permission associated with a credential.
|
List<Permission> |
getPermissions(CredentialName name)
Get the permissions associated with a credential.
|
public CredHubPermissionTemplate(CredHubOperations credHubOperations)
CredHubPermissionTemplate.credHubOperations - the CredHubOperations to use for interactions with
CredHubpublic List<Permission> getPermissions(CredentialName name)
CredHubPermissionOperationsgetPermissions in interface CredHubPermissionOperationsname - the name of the credential; must not be nullpublic void addPermissions(CredentialName name, Permission... permissions)
CredHubPermissionOperationsaddPermissions in interface CredHubPermissionOperationsname - the name of the credential; must not be nullpermissions - a collection of permissions to addpublic void deletePermission(CredentialName name, Actor actor)
CredHubPermissionOperationsdeletePermission in interface CredHubPermissionOperationsname - the name of the credential; must not be nullactor - the actor of the permission; must not be null