Class TestSecurityContextHolderStrategyAdapter

  • All Implemented Interfaces:
    org.springframework.security.core.context.SecurityContextHolderStrategy

    public final class TestSecurityContextHolderStrategyAdapter
    extends java.lang.Object
    implements org.springframework.security.core.context.SecurityContextHolderStrategy
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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 context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.security.core.context.SecurityContextHolderStrategy

        getDeferredContext, setDeferredContext
    • Constructor Detail

      • TestSecurityContextHolderStrategyAdapter

        public TestSecurityContextHolderStrategyAdapter()
    • Method Detail

      • clearContext

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

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

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

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