Class AuthorizationsImpl

java.lang.Object
io.camunda.identity.sdk.impl.AuthorizationsImpl
All Implemented Interfaces:
Authorizations

public class AuthorizationsImpl extends Object implements Authorizations
  • Constructor Details

  • Method Details

    • forToken

      public List<Authorization> forToken(String token)
      Description copied from interface: Authorizations
      Returns the list of authorizations which are assigned to the user linked to the token.
      Specified by:
      forToken in interface Authorizations
      Parameters:
      token - the token
      Returns:
      the list of authorizations
    • forToken

      public List<Authorization> forToken(String token, String organizationId)
      Description copied from interface: Authorizations
      Returns the list of authorizations which are assigned to the user linked to the token taking into account the organizationId passed in.
      Specified by:
      forToken in interface Authorizations
      Parameters:
      token - the token
      organizationId - the orgainzation to retrieve authorizations for
      Returns:
      the list of authorizations
    • assignAuthorization

      public void assignAuthorization(String token, String entityId, String entityType, String organizationId, String resourceKey, String resourceType, Set<String> requestedPermissions)
      Description copied from interface: Authorizations
      Assigns an authorization to the user belonging to the token passed in
      Specified by:
      assignAuthorization in interface Authorizations
      Parameters:
      token - the user token to authenticate the request with
      entityId - the ID of the entity to assign the authorization to
      entityType - the type of entity see: EntityType
      organizationId - the organization ID to create the authorization for, the user must have access to the organization.
      resourceKey - the key of the resource
      resourceType - the type of resource see: ResourceType
      requestedPermissions - the permissions to assign to the authorization see: ResourcePermissions
    • update

      public void update(String token, UpdateAuthorizations updateAuthorizations)
      Description copied from interface: Authorizations
      Updates authorizations for the user belonging to the token passed in
      Specified by:
      update in interface Authorizations
      Parameters:
      token - the user token to authenticate the request with
      updateAuthorizations - the representation of the authorizations to update, see UpdateAuthorizations