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:
  • Field Details

    • ANONYMOUS

      public static final Authentication ANONYMOUS
    • identityId

      protected final String identityId
    • processEngineName

      protected final String processEngineName
  • Constructor Details

    • Authentication

      public Authentication(String identityId, String processEngineName)
  • Method Details

    • 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