Interface AuthenticationService

  • All Known Implementing Classes:
    AuthenticationManager

    public interface AuthenticationService
    Authentication service to provide authentication context.
    • Method Detail

      • get

        Authentication get()
        Retrieve the current security context, or null if none exists.
        Returns:
        security context
      • set

        void set​(Authentication auth)
        Set the current security context. Only TokenAuth should set security context based on the authentication result.
        Parameters:
        auth - security context
      • clear

        void clear()
        Clear the current security context.
      • isAuthEnabled

        boolean isAuthEnabled()
        Checks to see if authentication is enabled.
        Returns:
        true if it is, false otherwise