Class UserIdAuthenticationContext

java.lang.Object
org.flowable.common.engine.impl.identity.UserIdAuthenticationContext
All Implemented Interfaces:
AuthenticationContext

public class UserIdAuthenticationContext extends Object implements AuthenticationContext
Default implementation of the AuthenticationContext that uses a ThreadLocal that stores the Principal
Author:
Filip Hrisafov
  • Constructor Details

    • UserIdAuthenticationContext

      public UserIdAuthenticationContext()
  • Method Details

    • getAuthenticatedUserId

      public String getAuthenticatedUserId()
      Description copied from interface: AuthenticationContext
      The user id of the authenticated principal.
      Specified by:
      getAuthenticatedUserId in interface AuthenticationContext
      Returns:
      the id of the authenticated user
    • getPrincipal

      public Principal getPrincipal()
      Description copied from interface: AuthenticationContext
      Obtains the currently authenticated principal, or an authentication request token.
      Specified by:
      getPrincipal in interface AuthenticationContext
      Returns:
      the Principal or null if no principal information is available
    • setPrincipal

      public void setPrincipal(Principal principal)
      Description copied from interface: AuthenticationContext
      Changes the currently authenticated principal, or removes the authentication information.
      Specified by:
      setPrincipal in interface AuthenticationContext
      Parameters:
      principal - the new Authentication token, or null if no further principal information should be stored