public final class VaadinAwareSecurityContextHolderStrategy extends Object implements org.springframework.security.core.context.SecurityContextHolderStrategy
Falls back to the default thread specific security context when no vaadinSession is available.
| Constructor and Description |
|---|
VaadinAwareSecurityContextHolderStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearContext() |
org.springframework.security.core.context.SecurityContext |
createEmptyContext() |
org.springframework.security.core.context.SecurityContext |
getContext() |
void |
setContext(org.springframework.security.core.context.SecurityContext securityContext) |
public VaadinAwareSecurityContextHolderStrategy()
public void clearContext()
clearContext in interface org.springframework.security.core.context.SecurityContextHolderStrategy@NonNull public org.springframework.security.core.context.SecurityContext getContext()
getContext in interface org.springframework.security.core.context.SecurityContextHolderStrategypublic void setContext(@NonNull
org.springframework.security.core.context.SecurityContext securityContext)
setContext in interface org.springframework.security.core.context.SecurityContextHolderStrategy@NonNull public org.springframework.security.core.context.SecurityContext createEmptyContext()
createEmptyContext in interface org.springframework.security.core.context.SecurityContextHolderStrategyCopyright © 2021 Vaadin Ltd. All Rights Reserved.