Interface AuthenticatorService

All Known Implementing Classes:
AuthenticatorServiceImpl, AuthenticatorTestServiceImpl

public interface AuthenticatorService
  • Method Details

    • authenticate

      AuthenticationResult authenticate(AuthToken[] tokens)
    • authenticate

      AuthenticationResult authenticate(String token, String idToken)
    • isAuthenticated

      boolean isAuthenticated()
      Returns if a user was previously successfully authenticated using the authenticate method()
    • isAuthenticated

      default boolean isAuthenticated(String bearerToken)
    • getCurrentUser

      User getCurrentUser()
      Returns the authenticated user
      Throws:
      RuntimeException - if no user was authenticated
    • getRequiredClientModules

      Set<String> getRequiredClientModules()
    • logoff

      void logoff()
    • su

      void su(User user)
    • getLastRequests

      Map<Long,Long> getLastRequests()
    • setAuthenticated

      void setAuthenticated(Long userId)
    • setAuthenticatedInThread

      void setAuthenticatedInThread(Long userId)
    • logoffUserInThread

      void logoffUserInThread()
    • getPams

      Set<ReportServerPAM> getPams()
    • ensureContext

      default void ensureContext()