Class Authentication
- java.lang.Object
-
- org.camunda.bpm.webapp.impl.security.auth.Authentication
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.Principal
- Direct Known Subclasses:
UserAuthentication
public class Authentication extends java.lang.Object implements java.security.Principal, java.io.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 java.lang.String
identityId
protected java.lang.String
processEngineName
-
Constructor Summary
Constructors Constructor Description Authentication(java.lang.String identityId, java.lang.String processEngineName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getIdentityId()
java.lang.String
getName()
java.security.Principal implementation: return the id of the identity (userId) behind this authenticationjava.lang.String
getProcessEngineName()
int
hashCode()
-
-
-
Field Detail
-
ANONYMOUS
public static final Authentication ANONYMOUS
-
identityId
protected final java.lang.String identityId
-
processEngineName
protected final java.lang.String processEngineName
-
-
Method Detail
-
getName
public java.lang.String getName()
java.security.Principal implementation: return the id of the identity (userId) behind this authentication- Specified by:
getName
in interfacejava.security.Principal
-
getIdentityId
public java.lang.String getIdentityId()
- Returns:
- the id of the identity (userId) behind this authentication
-
getProcessEngineName
public java.lang.String getProcessEngineName()
- Returns:
- return the name of the process engine for which this authentication was established.
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.security.Principal
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacejava.security.Principal
- Overrides:
equals
in classjava.lang.Object
-
-