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.voidsetPrincipal(Principal principal) Changes the currently authenticated principal, or removes the authentication information.
-
Constructor Details
-
SpringSecurityAuthenticationContext
public SpringSecurityAuthenticationContext()
-
-
Method Details
-
getAuthenticatedUserId
Description copied from interface:AuthenticationContextThe user id of the authenticated principal.- Specified by:
getAuthenticatedUserIdin interfaceAuthenticationContext- Returns:
- the id of the authenticated user
-
getPrincipal
Description copied from interface:AuthenticationContextObtains the currently authenticated principal, or an authentication request token.- Specified by:
getPrincipalin interfaceAuthenticationContext- Returns:
- the
Principalornullif no principal information is available
-
setPrincipal
Description copied from interface:AuthenticationContextChanges the currently authenticated principal, or removes the authentication information.- Specified by:
setPrincipalin interfaceAuthenticationContext- Parameters:
principal- the newAuthenticationtoken, ornullif no further principal information should be stored
-