org.camunda.bpm.engine.impl.identity
Class Authentication

java.lang.Object
  extended by org.camunda.bpm.engine.impl.identity.Authentication

public class Authentication
extends Object

Allows to expose the id of the currently authenticated user and his groups 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
protected  List<String> authenticatedGroupIds
           
protected  String authenticatedUserId
           
 
Constructor Summary
Authentication()
           
Authentication(String authenticatedUserId, List<String> groupIds)
           
 
Method Summary
 List<String> getGroupIds()
           
 String getUserId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authenticatedUserId

protected String authenticatedUserId

authenticatedGroupIds

protected List<String> authenticatedGroupIds
Constructor Detail

Authentication

public Authentication()

Authentication

public Authentication(String authenticatedUserId,
                      List<String> groupIds)
Method Detail

getGroupIds

public List<String> getGroupIds()

getUserId

public String getUserId()


Copyright © 2015 camunda services GmbH. All rights reserved.