Class TenantBindingRequiredException

All Implemented Interfaces:
Serializable

public class TenantBindingRequiredException extends KeyManagementSdkException
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 Details

    • PROBLEM_TYPE

      public static final String 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

      public TenantBindingRequiredException(String group)
      Creates the exception.
      Parameters:
      group - the operation group that was reached, for the message (for example "keys")