Class CapabilityGrantOperations
java.lang.Object
co.ankatech.ankasecure.keymanagement.CapabilityGrantOperations
The tenant's explicit capability grants: which actor may use which key for which operation, under
which constraints. Obtained from
AuthenticatedKeyManagementSdk.capabilityGrants().
ConferralPlanResponse plan = sdk.capabilityGrants().preview(request);
CapabilityGrantResponse grant = sdk.capabilityGrants().create(request);
-
Method Summary
Modifier and TypeMethodDescriptioncreate(CreateCapabilityGrantRequest request) Creates a capability grant (POST /tenants/{t}/capability-grants).voidRevokes a capability grant (DELETE /tenants/{t}/capability-grants/{g}).Reads one capability grant (GET /tenants/{t}/capability-grants/{g}).list(CapabilityGrantListQuery query) Lists capability grants (GET /tenants/{t}/capability-grants).preview(CreateCapabilityGrantRequest request) Previews what a grant would confer, without creating it (POST /tenants/{t}/capability-grants/preview).
-
Method Details
-
list
Lists capability grants (GET /tenants/{t}/capability-grants).- Parameters:
query- the filters and page; must not benull- Returns:
- one page of grants
- Throws:
KeyManagementSdkException- when the call is refused
-
create
Creates a capability grant (POST /tenants/{t}/capability-grants).- Parameters:
request- the grant; must not benull- Returns:
- the created grant
- Throws:
KeyManagementSdkException- when the call is refused
-
preview
Previews what a grant would confer, without creating it (POST /tenants/{t}/capability-grants/preview).- Parameters:
request- the grant to preview; must not benull- Returns:
- the conferral plan
- Throws:
KeyManagementSdkException- when the call is refused
-
get
Reads one capability grant (GET /tenants/{t}/capability-grants/{g}).- Parameters:
grantId- the grant; must not benull- Returns:
- the grant
- Throws:
KeyManagementSdkException- when the call is refused
-
delete
Revokes a capability grant (DELETE /tenants/{t}/capability-grants/{g}).- Parameters:
grantId- the grant; must not benull- Throws:
KeyManagementSdkException- when the call is refused
-