public interface TrustedClientService
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | NAME | 
| Modifier and Type | Method and Description | 
|---|---|
| UserSession | findSession(java.lang.String trustedClientPassword,
           java.util.UUID sessionId)Get a UserSession from the cache of currently active sessions. | 
| UserSession | getAnonymousSession(java.lang.String trustedClientPassword)Get anonymous user session from a trusted client. | 
| UserSession | getAnonymousSession(java.lang.String trustedClientPassword,
                   java.lang.String securityScope)Get anonymous user session from a trusted client. | 
| UserSession | getSystemSession(java.lang.String trustedClientPassword)Get system user session from a trusted client. | 
| void | healthCheck()Do nothing. | 
static final java.lang.String NAME
@Nonnull UserSession getSystemSession(java.lang.String trustedClientPassword) throws LoginException
AuthenticationService.logout() for obtained user session.
 It is cached on middleware for multiple clients. trustedClientPassword - trusted client passwordLoginException - if passed invalid trusted client password@Nonnull UserSession getAnonymousSession(java.lang.String trustedClientPassword) throws LoginException
 Method works like the getAnonymousSession(String, String) using the default scope name.
trustedClientPassword - trusted client passwordLoginException - if passed invalid trusted client password@Nonnull UserSession getAnonymousSession(java.lang.String trustedClientPassword, java.lang.String securityScope) throws LoginException
trustedClientPassword - trusted client passwordsecurityScope - security scope nameLoginException - if passed invalid trusted client password@Nullable UserSession findSession(java.lang.String trustedClientPassword, java.util.UUID sessionId) throws LoginException
trustedClientPassword - trusted client passwordsessionId - session idLoginException - if passed invalid trusted client passwordvoid healthCheck()