public class ReactiveCredHubPermissionTemplate extends Object implements ReactiveCredHubPermissionOperations
Constructor and Description |
---|
ReactiveCredHubPermissionTemplate(ReactiveCredHubOperations credHubOperations)
Create a new
ReactiveCredHubPermissionTemplate . |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
addPermissions(CredentialName name,
Permission... permissions)
Add permissions to an existing credential.
|
reactor.core.publisher.Mono<Void> |
deletePermission(CredentialName name,
Actor actor)
Delete a permission associated with a credential.
|
reactor.core.publisher.Flux<Permission> |
getPermissions(CredentialName name)
Get the permissions associated with a credential.
|
public ReactiveCredHubPermissionTemplate(ReactiveCredHubOperations credHubOperations)
ReactiveCredHubPermissionTemplate
.credHubOperations
- the ReactiveCredHubOperations
to use for
interactions with CredHubpublic reactor.core.publisher.Flux<Permission> getPermissions(CredentialName name)
ReactiveCredHubPermissionOperations
getPermissions
in interface ReactiveCredHubPermissionOperations
name
- the name of the credential; must not be nullpublic reactor.core.publisher.Mono<Void> addPermissions(CredentialName name, Permission... permissions)
ReactiveCredHubPermissionOperations
addPermissions
in interface ReactiveCredHubPermissionOperations
name
- the name of the credential; must not be nullpermissions
- a collection of permissions to addMono
public reactor.core.publisher.Mono<Void> deletePermission(CredentialName name, Actor actor)
ReactiveCredHubPermissionOperations
deletePermission
in interface ReactiveCredHubPermissionOperations
name
- the name of the credential; must not be nullactor
- the actor of the permission; must not be nullMono