Class Authentication
- java.lang.Object
-
- org.camunda.bpm.webapp.impl.security.auth.Authentication
-
- All Implemented Interfaces:
Serializable
,Principal
- Direct Known Subclasses:
UserAuthentication
public class Authentication extends Object implements Principal, Serializable
Represents an active authentication of a given identity (usually a user).
In camunda webapps, an authentication exists between some identity (user) and a process engine
Implements java.security.Principal so that this object may be used everywhere where a
Principal
is required.- Author:
- Daniel Meyer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Authentication
ANONYMOUS
protected String
identityId
protected String
processEngineName
-
Constructor Summary
Constructors Constructor Description Authentication(String identityId, String processEngineName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getIdentityId()
String
getName()
java.security.Principal implementation: return the id of the identity (userId) behind this authenticationString
getProcessEngineName()
int
hashCode()
-
-
-
Field Detail
-
ANONYMOUS
public static final Authentication ANONYMOUS
-
identityId
protected final String identityId
-
processEngineName
protected final String processEngineName
-
-
Method Detail
-
getName
public String getName()
java.security.Principal implementation: return the id of the identity (userId) behind this authentication
-
getIdentityId
public String getIdentityId()
- Returns:
- the id of the identity (userId) behind this authentication
-
getProcessEngineName
public String getProcessEngineName()
- Returns:
- return the name of the process engine for which this authentication was established.
-
hashCode
public int hashCode()
-
-