Class Authentication

  • All Implemented Interfaces:,
    Direct Known Subclasses:

    public class Authentication
    extends java.lang.Object

    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 so that this object may be used everywhere where a Principal is required.

    Daniel Meyer
    See Also:
    Serialized Form
    • Constructor Summary

      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() implementation: return the id of the identity (userId) behind this authentication
      java.lang.String getProcessEngineName()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface

        implies, toString
    • Field Detail

      • identityId

        protected final java.lang.String identityId
      • processEngineName

        protected final java.lang.String processEngineName
    • Constructor Detail

      • Authentication

        public Authentication​(java.lang.String identityId,
                              java.lang.String processEngineName)
    • Method Detail

      • getName

        public java.lang.String getName() implementation: return the id of the identity (userId) behind this authentication
        Specified by:
        getName in interface
      • getIdentityId

        public java.lang.String getIdentityId()
        the id of the identity (userId) behind this authentication
      • getProcessEngineName

        public java.lang.String getProcessEngineName()
        return the name of the process engine for which this authentication was established.
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface
        equals in class java.lang.Object