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 Details

    • getPermissions

      reactor.core.publisher.Mono<CredentialPermission> getPermissions(String id)
      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 null
      actor - 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 null
      permission - 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 null
      path - the path of the credentials; must not be null
      permission - a permission to add
      Returns:
      the details if the added permission
    • deletePermission

      reactor.core.publisher.Mono<Void> deletePermission(String id)
      Delete a permission.
      Parameters:
      id - the CredHub-assigned ID of the permission; must not be null
      Returns:
      an empty Mono