@Component(value="cuba_TrustedClientService") public class TrustedClientServiceBean extends java.lang.Object implements TrustedClientService
NAME| Constructor and Description |
|---|
TrustedClientServiceBean() |
| 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 |
getSystemSession(java.lang.String trustedClientPassword)
Get system user session from a trusted client.
|
@Nonnull public UserSession getSystemSession(java.lang.String trustedClientPassword) throws LoginException
TrustedClientServiceAuthenticationService.logout() for obtained user session.
It is cached on middleware for multiple clients. getSystemSession in interface TrustedClientServicetrustedClientPassword - trusted client passwordLoginException - if passed invalid trusted client password@Nonnull public UserSession getAnonymousSession(java.lang.String trustedClientPassword) throws LoginException
TrustedClientServicegetAnonymousSession in interface TrustedClientServicetrustedClientPassword - trusted client passwordLoginException - if passed invalid trusted client password@Nullable public UserSession findSession(java.lang.String trustedClientPassword, java.util.UUID sessionId) throws LoginException
TrustedClientServicefindSession in interface TrustedClientServicetrustedClientPassword - trusted client passwordsessionId - session idLoginException - if passed invalid trusted client password