Package com.vaadin.flow.spring.security
Class VaadinAwareSecurityContextHolderStrategy
- java.lang.Object
-
- com.vaadin.flow.spring.security.VaadinAwareSecurityContextHolderStrategy
-
- All Implemented Interfaces:
org.springframework.security.core.context.SecurityContextHolderStrategy
public final class VaadinAwareSecurityContextHolderStrategy extends Object implements org.springframework.security.core.context.SecurityContextHolderStrategy
A strategy that uses an available VaadinSession for retrieving the security context.Falls back to the default thread specific security context when no vaadinSession is available.
-
-
Constructor Summary
Constructors Constructor Description VaadinAwareSecurityContextHolderStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearContext()org.springframework.security.core.context.SecurityContextcreateEmptyContext()org.springframework.security.core.context.SecurityContextgetContext()voidsetContext(org.springframework.security.core.context.SecurityContext securityContext)
-
-
-
Method Detail
-
clearContext
public void clearContext()
- Specified by:
clearContextin interfaceorg.springframework.security.core.context.SecurityContextHolderStrategy
-
getContext
@NonNull public org.springframework.security.core.context.SecurityContext getContext()
- Specified by:
getContextin interfaceorg.springframework.security.core.context.SecurityContextHolderStrategy
-
setContext
public void setContext(@NonNull org.springframework.security.core.context.SecurityContext securityContext)- Specified by:
setContextin interfaceorg.springframework.security.core.context.SecurityContextHolderStrategy
-
createEmptyContext
@NonNull public org.springframework.security.core.context.SecurityContext createEmptyContext()
- Specified by:
createEmptyContextin interfaceorg.springframework.security.core.context.SecurityContextHolderStrategy
-
-