public class SecurityContextHelper
extends java.lang.Object
SecurityContext
.Constructor and Description |
---|
SecurityContextHelper() |
Modifier and Type | Method and Description |
---|---|
static org.springframework.security.core.Authentication |
getAuthentication()
Returns current Authentication or null if the current context has no Authentication
|
static void |
setAuthentication(org.springframework.security.core.Authentication authentication)
Sets the Authentication in the current
SecurityContext . |
@Nullable public static org.springframework.security.core.Authentication getAuthentication()
public static void setAuthentication(@Nullable org.springframework.security.core.Authentication authentication)
SecurityContext
.