Interface Authorizations
- All Known Implementing Classes:
AuthorizationsImpl
public interface Authorizations
The Authorizations class provides functionality to retrieve the authorizations stored
in the Camunda Identity instance.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignAuthorization(String token, String entityId, String entityType, String organizationId, String resourceKey, String resourceType, Set<String> requestedPermissions) Assigns an authorization to the user belonging to the token passed instatic Authorizationscreate(IdentityConfiguration configuration) Factory function to create a new authorizations instanceReturns the list of authorizations which are assigned to the user linked to the token.Returns the list of authorizations which are assigned to the user linked to the token taking into account the organizationId passed in.voidupdate(String token, UpdateAuthorizations updateAuthorizations) Updates authorizations for the user belonging to the token passed in
-
Method Details
-
forToken
Returns the list of authorizations which are assigned to the user linked to the token.- Parameters:
token- the token- Returns:
- the list of authorizations
-
forToken
Returns the list of authorizations which are assigned to the user linked to the token taking into account the organizationId passed in.- Parameters:
token- the tokenorganizationId- the orgainzation to retrieve authorizations for- Returns:
- the list of authorizations
-
assignAuthorization
void assignAuthorization(String token, String entityId, String entityType, String organizationId, String resourceKey, String resourceType, Set<String> requestedPermissions) Assigns an authorization to the user belonging to the token passed in- Parameters:
token- the user token to authenticate the request withentityId- the ID of the entity to assign the authorization toentityType- the type of entity see:EntityTypeorganizationId- the organization ID to create the authorization for, the user must have access to the organization.resourceKey- the key of the resourceresourceType- the type of resource see:ResourceTyperequestedPermissions- the permissions to assign to the authorization see:ResourcePermissions
-
update
Updates authorizations for the user belonging to the token passed in- Parameters:
token- the user token to authenticate the request withupdateAuthorizations- the representation of the authorizations to update, seeUpdateAuthorizations
-
create
Factory function to create a new authorizations instance- Parameters:
configuration- Identity configuration- Returns:
- Authorizations instance
-