Interface ReactiveCredHubPermissionV2Operations
- All Known Implementing Classes:
ReactiveCredHubPermissionV2Template
public interface ReactiveCredHubPermissionV2Operations
Specifies the interactions with CredHub to add, retrieve, and delete permissions.
- Author:
- Scott Frederick, Alberto C. RĂos
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<CredentialPermission>addPermissions(CredentialName path, Permission permission) Add permissions to an credential path.reactor.core.publisher.Mono<Void>Delete a permission.reactor.core.publisher.Mono<CredentialPermission>getPermissions(String id) Get a permission.reactor.core.publisher.Mono<CredentialPermission>getPermissionsByPathAndActor(CredentialName path, Actor actor) Get a permission by path and actor.reactor.core.publisher.Mono<CredentialPermission>updatePermissions(String id, CredentialName path, Permission permission) Add permissions to an existing credential.
-
Method Details
-
getPermissions
Get a permission.- Parameters:
id- the CredHub-assigned ID of the permission; must not be null- Returns:
- the details if the specified permission
-
getPermissionsByPathAndActor
reactor.core.publisher.Mono<CredentialPermission> getPermissionsByPathAndActor(CredentialName path, Actor actor) Get a permission by path and actor.- Parameters:
path- the path of the credentials; must not be nullactor- the actor of the credentials; must not be null- Returns:
- the details if the specified permission
- Since:
- API 2.1
-
addPermissions
reactor.core.publisher.Mono<CredentialPermission> addPermissions(CredentialName path, Permission permission) Add permissions to an credential path.- Parameters:
path- the path of the credentials; must not be nullpermission- a permission to add- Returns:
- the details if the added permission
-
updatePermissions
reactor.core.publisher.Mono<CredentialPermission> updatePermissions(String id, CredentialName path, Permission permission) Add permissions to an existing credential.- Parameters:
id- the CredHub-assigned ID of the permission; must not be nullpath- the path of the credentials; must not be nullpermission- a permission to add- Returns:
- the details if the added permission
-
deletePermission
Delete a permission.- Parameters:
id- the CredHub-assigned ID of the permission; must not be null- Returns:
- an empty
Mono
-