public class AuthenticatorTestServiceImpl extends java.lang.Object implements AuthenticatorService
Constructor and Description |
---|
AuthenticatorTestServiceImpl() |
Modifier and Type | Method and Description |
---|---|
AuthenticationResult |
authenticate(AuthToken[] tokens) |
User |
getCurrentUser()
Returns the authenticated user
|
java.util.Map<java.lang.Long,java.lang.Long> |
getLastRequests() |
java.util.Set<ReportServerPAM> |
getPams() |
java.util.Set<java.lang.String> |
getRequiredClientModules() |
boolean |
isAuthenticated()
Returns if a user was previously successfully authenticated using the
authenticate method()
|
void |
logoff() |
void |
logoffUserInThread() |
void |
setAuthenticated(java.lang.Long userId) |
void |
setAuthenticatedInThread(java.lang.Long userId) |
void |
su(User user) |
public AuthenticationResult authenticate(AuthToken[] tokens)
authenticate
in interface AuthenticatorService
public User getCurrentUser()
AuthenticatorService
getCurrentUser
in interface AuthenticatorService
public java.util.Set<java.lang.String> getRequiredClientModules()
getRequiredClientModules
in interface AuthenticatorService
public boolean isAuthenticated()
AuthenticatorService
isAuthenticated
in interface AuthenticatorService
public void logoff()
logoff
in interface AuthenticatorService
public void su(User user)
su
in interface AuthenticatorService
public java.util.Map<java.lang.Long,java.lang.Long> getLastRequests()
getLastRequests
in interface AuthenticatorService
public void setAuthenticated(java.lang.Long userId)
setAuthenticated
in interface AuthenticatorService
public void logoffUserInThread()
logoffUserInThread
in interface AuthenticatorService
public void setAuthenticatedInThread(java.lang.Long userId)
setAuthenticatedInThread
in interface AuthenticatorService
public java.util.Set<ReportServerPAM> getPams()
getPams
in interface AuthenticatorService