Class DirectoryOperations
java.lang.Object
co.ankatech.ankasecure.keymanagement.DirectoryOperations
Read-only lookups of the tenant's applications, cryptographic actors and counterparty types: what a
key management automation needs to name the grantees and counterparties of the resources it manages.
Obtained from
AuthenticatedKeyManagementSdk.directory(). Applications, actors and their
credentials are administered in the Admin Console; this SDK only reads them.
PageApplicationResponse applications = sdk.directory().listApplications(ApplicationListQuery.firstPage());
-
Method Summary
Modifier and TypeMethodDescriptionReads one actor (GET /tenants/{t}/actors/{a}).getApplication(UUID applicationId) Reads one application (GET /tenants/{t}/applications/{a}).getCounterpartyType(UUID counterpartyTypeId) Reads one counterparty type (GET /tenants/{t}/counterparty-types/{id}).listActors(ActorListQuery query) Lists the tenant's cryptographic actors (GET /tenants/{t}/actors).listApplicationActors(UUID applicationId) Lists the actors of one application (GET /tenants/{t}/applications/{a}/actors).Lists the tenant's applications (GET /tenants/{t}/applications).Lists the counterparty types the tenant can use (GET /tenants/{t}/counterparty-types).
-
Method Details
-
listApplications
Lists the tenant's applications (GET /tenants/{t}/applications).- Parameters:
query- the page; must not benull- Returns:
- one page of applications
- Throws:
KeyManagementSdkException- when the call is refused
-
getApplication
Reads one application (GET /tenants/{t}/applications/{a}).- Parameters:
applicationId- the application; must not benull- Returns:
- the application
- Throws:
KeyManagementSdkException- when the call is refused
-
listActors
Lists the tenant's cryptographic actors (GET /tenants/{t}/actors).- Parameters:
query- the page; must not benull- Returns:
- one page of actors
- Throws:
KeyManagementSdkException- when the call is refused
-
listApplicationActors
Lists the actors of one application (GET /tenants/{t}/applications/{a}/actors).- Parameters:
applicationId- the application; must not benull- Returns:
- the application's actors
- Throws:
KeyManagementSdkException- when the call is refused
-
getActor
Reads one actor (GET /tenants/{t}/actors/{a}).- Parameters:
actorId- the actor; must not benull- Returns:
- the actor
- Throws:
KeyManagementSdkException- when the call is refused
-
listCounterpartyTypes
Lists the counterparty types the tenant can use (GET /tenants/{t}/counterparty-types).- Returns:
- the counterparty types
- Throws:
KeyManagementSdkException- when the call is refused
-
getCounterpartyType
Reads one counterparty type (GET /tenants/{t}/counterparty-types/{id}).- Parameters:
counterpartyTypeId- the counterparty type; must not benull- Returns:
- the counterparty type
- Throws:
KeyManagementSdkException- when the call is refused
-