Interface SecurityContextHolderStrategy

    • Method Detail

      • clearContext

        void clearContext()
        Clears the current context.
      • getContext

        SecurityContext getContext()
        Obtains the current context.
        a context (never null - create a default implementation if necessary)
      • setContext

        void setContext​(SecurityContext context)
        Sets the current context.
        context - to the new argument (should never be null, although implementations must check if null has been passed and throw an IllegalArgumentException in such cases)
      • createEmptyContext

        SecurityContext createEmptyContext()
        Creates a new, empty context implementation, for use by SecurityContextRepository implementations, when creating a new context for the first time.
        the empty context.