Class Authentication
- java.lang.Object
-
- org.camunda.bpm.engine.impl.identity.Authentication
-
public class Authentication extends Object
Allows to expose the id of the currently authenticated user, his groups and his tenants to the process engine.
The current authentication is managed using a Thread Local. The value can be set using
#setCurrentAuthentication(String, List)
, retrieved using#getCurrentAuthentication()
and cleared using#clearCurrentAuthentication()
.Users typically do not use this class directly but rather use the corresponding Service API methods:
- Author:
- Tom Baeyens, Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
authenticatedGroupIds
protected List<String>
authenticatedTenantIds
protected String
authenticatedUserId
-
Constructor Summary
Constructors Constructor Description Authentication()
Authentication(String authenticatedUserId, List<String> groupIds)
Authentication(String authenticatedUserId, List<String> authenticatedGroupIds, List<String> authenticatedTenantIds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getGroupIds()
List<String>
getTenantIds()
String
getUserId()
-