Interface AuthenticatorService
- All Known Implementing Classes:
AuthenticatorServiceImpl,AuthenticatorTestServiceImpl
public interface AuthenticatorService
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate(String token, String idToken) authenticate(AuthToken[] tokens) default voidReturns the authenticated usergetPams()booleanReturns if a user was previously successfully authenticated using the authenticate method()default booleanisAuthenticated(String bearerToken) voidlogoff()voidvoidsetAuthenticated(Long userId) voidsetAuthenticatedInThread(Long userId) void
-
Method Details
-
authenticate
-
authenticate
-
isAuthenticated
boolean isAuthenticated()Returns if a user was previously successfully authenticated using the authenticate method() -
isAuthenticated
-
getCurrentUser
User getCurrentUser()Returns the authenticated user- Throws:
RuntimeException- if no user was authenticated
-
getRequiredClientModules
-
logoff
void logoff() -
su
-
getLastRequests
-
setAuthenticated
-
setAuthenticatedInThread
-
logoffUserInThread
void logoffUserInThread() -
getPams
Set<ReportServerPAM> getPams() -
ensureContext
default void ensureContext()
-