org.camunda.bpm.webapp.impl.security.auth
Class Authentication

java.lang.Object
  extended by 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
static Authentication ANONYMOUS
           
protected  String identityId
           
protected  String processEngineName
           
 
Constructor Summary
Authentication(String identityId, String processEngineName)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getIdentityId()
           
 String getName()
          java.security.Principal implementation: return the id of the identity (userId) behind this authentication
 String getProcessEngineName()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
toString
 

Field Detail

ANONYMOUS

public static final Authentication ANONYMOUS

identityId

protected final String identityId

processEngineName

protected final String processEngineName
Constructor Detail

Authentication

public Authentication(String identityId,
                      String processEngineName)
Method Detail

getName

public String getName()
java.security.Principal implementation: return the id of the identity (userId) behind this authentication

Specified by:
getName in interface Principal

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()
Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Specified by:
equals in interface Principal
Overrides:
equals in class Object


Copyright © 2018 camunda services GmbH. All rights reserved.