Interface AuthenticationService

All Known Implementing Classes:
AuthenticationManager

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

    Modifier and Type
    Method
    Description
    void
    Clear the current security context.
    get()
    Retrieve the current security context, or null if none exists.
    boolean
    Checks to see if authentication is enabled.
    void
    Set the current security context.
  • Method Details

    • 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