Class TenantBindingRequiredException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
co.ankatech.ankasecure.keymanagement.exception.KeyManagementSdkException
co.ankatech.ankasecure.keymanagement.exception.TenantBindingRequiredException
- All Implemented Interfaces:
Serializable
A tenant-scoped operation group was reached from a session bound to no tenant: the session of a
platform (ROOT) workload. Thrown by the group accessor itself, before any request is sent, so the
session never addresses the ROOT tenant's own resources.
Classify on the type (instanceof) or on PROBLEM_TYPE, never on the message. The
HTTP status is 0: no request was sent.
try {
sdk.keys().list(KeyListQuery.firstPage());
} catch (TenantBindingRequiredException platformSession) {
// authenticate with an administrative workload of the tenant instead
}
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class co.ankatech.ankasecure.keymanagement.exception.KeyManagementSdkException
getHttpStatus, getOAuthError, getProblemDetail, getProblemExtensions, getProblemInstance, getProblemTitle, getProblemType, getRetryAfterMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
PROBLEM_TYPE
The problem type this exception carries. A client-side type: no server ever answers it, since the refusal happens before any request.- See Also:
-
-
Constructor Details
-
TenantBindingRequiredException
Creates the exception.- Parameters:
group- the operation group that was reached, for the message (for example"keys")
-