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.SerializableRepresents 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
Principalis required.- Author:
- Daniel Meyer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static AuthenticationANONYMOUSprotected java.lang.StringidentityIdprotected java.lang.StringprocessEngineName
-
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 booleanequals(java.lang.Object obj)java.lang.StringgetIdentityId()java.lang.StringgetName()java.security.Principal implementation: return the id of the identity (userId) behind this authenticationjava.lang.StringgetProcessEngineName()inthashCode()
-
-
-
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:
getNamein 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:
hashCodein interfacejava.security.Principal- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacejava.security.Principal- Overrides:
equalsin classjava.lang.Object
-
-