Package io.camunda.identity.sdk.impl
Class AuthorizationsImpl
java.lang.Object
io.camunda.identity.sdk.impl.AuthorizationsImpl
- All Implemented Interfaces:
Authorizations
-
Constructor Summary
Constructors -
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 inReturns 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
-
Constructor Details
-
AuthorizationsImpl
-
-
Method Details
-
forToken
Description copied from interface:AuthorizationsReturns the list of authorizations which are assigned to the user linked to the token.- Specified by:
forTokenin interfaceAuthorizations- Parameters:
token- the token- Returns:
- the list of authorizations
-
forToken
Description copied from interface:AuthorizationsReturns the list of authorizations which are assigned to the user linked to the token taking into account the organizationId passed in.- Specified by:
forTokenin interfaceAuthorizations- Parameters:
token- the tokenorganizationId- 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:AuthorizationsAssigns an authorization to the user belonging to the token passed in- Specified by:
assignAuthorizationin interfaceAuthorizations- 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
Description copied from interface:AuthorizationsUpdates authorizations for the user belonging to the token passed in- Specified by:
updatein interfaceAuthorizations- Parameters:
token- the user token to authenticate the request withupdateAuthorizations- the representation of the authorizations to update, seeUpdateAuthorizations
-