Class 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 Detail

      • VaadinAwareSecurityContextHolderStrategy

        public VaadinAwareSecurityContextHolderStrategy()
    • Method Detail

      • clearContext

        public void clearContext()
        Specified by:
        clearContext in interface org.springframework.security.core.context.SecurityContextHolderStrategy
      • getContext

        @NonNull
        public org.springframework.security.core.context.SecurityContext getContext()
        Specified by:
        getContext in interface org.springframework.security.core.context.SecurityContextHolderStrategy
      • setContext

        public void setContext​(@NonNull
                               org.springframework.security.core.context.SecurityContext securityContext)
        Specified by:
        setContext in interface org.springframework.security.core.context.SecurityContextHolderStrategy
      • createEmptyContext

        @NonNull
        public org.springframework.security.core.context.SecurityContext createEmptyContext()
        Specified by:
        createEmptyContext in interface org.springframework.security.core.context.SecurityContextHolderStrategy