Package org.flowable.spring.security
Class SpringSecurityAuthenticationContext
java.lang.Object
org.flowable.spring.security.SpringSecurityAuthenticationContext
- All Implemented Interfaces:
AuthenticationContext
A default Spring Security
AuthenticationContext
implementation that uses SecurityContextHolder
and
SecurityContext
to provide the information.- 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
-
SpringSecurityAuthenticationContext
public SpringSecurityAuthenticationContext()
-
-
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
-