public interface CredHubPermissionV2Operations
Modifier and Type | Method and Description |
---|---|
CredentialPermission |
addPermissions(CredentialName path,
Permission permission)
Add permissions to an credential path.
|
void |
deletePermission(String id)
Delete a permission.
|
CredentialPermission |
getPermissions(String id)
Get a permission.
|
CredentialPermission |
getPermissionsByPathAndActor(CredentialName path,
Actor actor)
Get a permission by path and actor.
|
CredentialPermission |
updatePermissions(String id,
CredentialName path,
Permission permission)
Add permissions to an existing credential.
|
CredentialPermission getPermissions(String id)
id
- the CredHub-assigned ID of the permission; must not be nullCredentialPermission getPermissionsByPathAndActor(CredentialName path, Actor actor)
path
- the path of the credentials; must not be nullactor
- the actor of the credentials; must not be nullCredentialPermission addPermissions(CredentialName path, Permission permission)
path
- the path of the credentials; must not be nullpermission
- a permission to addCredentialPermission updatePermissions(String id, CredentialName path, Permission permission)
id
- the CredHub-assigned ID of the permission; must not be nullpath
- the path of the credentials; must not be nullpermission
- a permission to addvoid deletePermission(String id)
id
- the CredHub-assigned ID of the permission; must not be null