Class UserIdAuthenticationContext
java.lang.Object
org.flowable.common.engine.impl.identity.UserIdAuthenticationContext
- All Implemented Interfaces:
AuthenticationContext
Default implementation of the
AuthenticationContext
that uses a ThreadLocal
that stores the Principal
- Author:
- Filip Hrisafov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe user id of the authenticated principal.Obtains the currently authenticated principal, or an authentication request token.void
setPrincipal
(Principal principal) Changes the currently authenticated principal, or removes the authentication information.
-
Constructor Details
-
UserIdAuthenticationContext
public UserIdAuthenticationContext()
-
-
Method Details
-
getAuthenticatedUserId
Description copied from interface:AuthenticationContext
The user id of the authenticated principal.- Specified by:
getAuthenticatedUserId
in interfaceAuthenticationContext
- Returns:
- the id of the authenticated user
-
getPrincipal
Description copied from interface:AuthenticationContext
Obtains the currently authenticated principal, or an authentication request token.- Specified by:
getPrincipal
in interfaceAuthenticationContext
- Returns:
- the
Principal
ornull
if no principal information is available
-
setPrincipal
Description copied from interface:AuthenticationContext
Changes the currently authenticated principal, or removes the authentication information.- Specified by:
setPrincipal
in interfaceAuthenticationContext
- Parameters:
principal
- the newAuthentication
token, ornull
if no further principal information should be stored
-