public class SpringSecurityAuthenticationContext extends Object implements AuthenticationContext
AuthenticationContext implementation that uses SecurityContextHolder and
SecurityContext to provide the information.| Constructor and Description |
|---|
SpringSecurityAuthenticationContext() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticatedUserId()
The user id of the authenticated principal.
|
org.springframework.security.core.Authentication |
getPrincipal()
Obtains the currently authenticated principal, or an authentication request token.
|
void |
setPrincipal(Principal principal)
Changes the currently authenticated principal, or removes the authentication
information.
|
public String getAuthenticatedUserId()
AuthenticationContextgetAuthenticatedUserId in interface AuthenticationContextpublic org.springframework.security.core.Authentication getPrincipal()
AuthenticationContextgetPrincipal in interface AuthenticationContextPrincipal or null if no principal
information is availablepublic void setPrincipal(Principal principal)
AuthenticationContextsetPrincipal in interface AuthenticationContextprincipal - the new Authentication token, or
null if no further principal information should be storedCopyright © 2023 Flowable. All rights reserved.