Package com.symphony.bdk.core.auth.impl
Class AuthSessionOboImpl
java.lang.Object
com.symphony.bdk.core.auth.impl.AuthSessionOboImpl
- All Implemented Interfaces:
AuthSession
AuthSession
impl for OBO authentication mode.-
Constructor Summary
ConstructorDescriptionAuthSessionOboImpl
(OboAuthenticatorRsaImpl authenticator, Long userId) AuthSessionOboImpl
(OboAuthenticatorRsaImpl authenticator, String username) -
Method Summary
Modifier and TypeMethodDescriptionprotected OboAuthenticator
This method is only visible for testing.KeyManager's authentication token.Pod's authentication token.void
refresh()
Trigger re-authentication to refresh tokens.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.symphony.bdk.core.auth.AuthSession
getAuthorizationToken
-
Constructor Details
-
AuthSessionOboImpl
- Parameters:
authenticator
-userId
-
-
AuthSessionOboImpl
- Parameters:
authenticator
-username
-
-
-
Method Details
-
getSessionToken
Pod's authentication token.- Specified by:
getSessionToken
in interfaceAuthSession
- Returns:
- the Pod session token
-
getKeyManagerToken
KeyManager's authentication token.- Specified by:
getKeyManagerToken
in interfaceAuthSession
- Returns:
- the KeyManager token, null if OBO
-
refresh
Trigger re-authentication to refresh tokens.- Specified by:
refresh
in interfaceAuthSession
- Throws:
AuthUnauthorizedException
-
getAuthenticator
This method is only visible for testing.
-