Class AccessToken
java.lang.Object
io.camunda.identity.sdk.authentication.AccessToken
- All Implemented Interfaces:
Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns organizations included in the tokenReturns permissions included in the tokencom.auth0.jwt.interfaces.DecodedJWTgetToken()Returns the tokenReturns user detailsbooleanhasPermissions(Set<String> permissions) Returns true if the token contains all given permissions
-
Method Details
-
getToken
public com.auth0.jwt.interfaces.DecodedJWT getToken()Returns the token- Returns:
- token as DecodedJWT
-
hasPermissions
Returns true if the token contains all given permissions- Parameters:
permissions- permissions that must be included in the token- Returns:
- true if token has correct permission
-
getPermissions
Returns permissions included in the token- Returns:
- permissions included in the token
-
getAssignedOrganizations
Returns organizations included in the token- Returns:
- organizations included in the token
-
getUserDetails
Returns user details- Returns:
- user details
-