Package com.symphony.bdk.core.auth.impl
Class AuthSessionOboCertImpl
java.lang.Object
com.symphony.bdk.core.auth.impl.AuthSessionOboCertImpl
- All Implemented Interfaces:
AuthSession
AuthSession
impl for OBO Certificate authentication mode.-
Constructor Summary
ConstructorDescriptionAuthSessionOboCertImpl
(OboAuthenticatorCertImpl authenticator, Long userId) AuthSessionOboCertImpl
(OboAuthenticatorCertImpl 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
-
AuthSessionOboCertImpl
public AuthSessionOboCertImpl(@Nonnull OboAuthenticatorCertImpl authenticator, @Nonnull Long userId) -
AuthSessionOboCertImpl
public AuthSessionOboCertImpl(@Nonnull OboAuthenticatorCertImpl authenticator, @Nonnull String 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.
-