public class CredHubPermissionV2Template extends java.lang.Object implements CredHubPermissionV2Operations
| Constructor and Description |
|---|
CredHubPermissionV2Template(CredHubOperations credHubOperations)
Create a new
CredHubPermissionV2Template. |
| Modifier and Type | Method and Description |
|---|---|
CredentialPermission |
addPermissions(CredentialName path,
Permission permission)
Add permissions to an credential path.
|
void |
deletePermission(java.lang.String id)
Delete a permission.
|
CredentialPermission |
getPermissions(java.lang.String id)
Get a permission.
|
CredentialPermission |
updatePermissions(java.lang.String id,
CredentialName path,
Permission permission)
Add permissions to an existing credential.
|
public CredHubPermissionV2Template(CredHubOperations credHubOperations)
CredHubPermissionV2Template.credHubOperations - the CredHubOperations to use for interactions with CredHubpublic CredentialPermission getPermissions(java.lang.String id)
CredHubPermissionV2OperationsgetPermissions in interface CredHubPermissionV2Operationsid - the CredHub-assigned ID of the permission; must not be nullpublic CredentialPermission addPermissions(CredentialName path, Permission permission)
CredHubPermissionV2OperationsaddPermissions in interface CredHubPermissionV2Operationspath - the path of the credentials; must not be nullpermission - a permission to addpublic CredentialPermission updatePermissions(java.lang.String id, CredentialName path, Permission permission)
CredHubPermissionV2OperationsupdatePermissions in interface CredHubPermissionV2Operationsid - the CredHub-assigned ID of the permission; must not be nullpath - the path of the credentials; must not be nullpermission - a permission to addpublic void deletePermission(java.lang.String id)
CredHubPermissionV2OperationsdeletePermission in interface CredHubPermissionV2Operationsid - the CredHub-assigned ID of the permission; must not be null