Class 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 Detail

      • 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.