Package com.symphony.bdk.core.auth.impl
Class AuthSessionImpl
java.lang.Object
com.symphony.bdk.core.auth.impl.AuthSessionImpl
- All Implemented Interfaces:
AuthSession
AuthSession
impl for regular authentication mode.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractBotAuthenticator
This method is only visible for testing.Pod's Common JWT authentication token.KeyManager's authentication token.Pod's authentication token.void
refresh()
Trigger re-authentication to refresh tokens.
-
Field Details
-
LEEWAY
-
-
Constructor Details
-
AuthSessionImpl
-
-
Method Details
-
getSessionToken
Pod's authentication token.- Specified by:
getSessionToken
in interfaceAuthSession
- Returns:
- the Pod session token
-
getAuthorizationToken
Pod's Common JWT authentication token. When commonJwt.enabled is set to true in the configuration, an OAuth authentication scheme is used where the session token acts as the refresh token and the authorization token is a short lived access token.- Specified by:
getAuthorizationToken
in interfaceAuthSession
- Returns:
- the Pod Authorization token
- Throws:
AuthUnauthorizedException
-
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.
-