@API(status=INTERNAL) public class AuthSessionRsaImpl extends java.lang.Object implements AuthSession
AuthSession
impl for regular authentication mode.Constructor and Description |
---|
AuthSessionRsaImpl(BotAuthenticatorRsaImpl authenticator) |
Modifier and Type | Method and Description |
---|---|
protected BotAuthenticatorRsaImpl |
getAuthenticator()
This method is only visible for testing.
|
java.lang.String |
getKeyManagerToken()
KeyManager's authentication token.
|
java.lang.String |
getSessionToken()
Pod's authentication token.
|
void |
refresh()
Trigger re-authentication to refresh tokens.
|
public AuthSessionRsaImpl(@Nonnull BotAuthenticatorRsaImpl authenticator)
@Nullable public java.lang.String getSessionToken()
getSessionToken
in interface AuthSession
@Nullable public java.lang.String getKeyManagerToken()
getKeyManagerToken
in interface AuthSession
public void refresh() throws AuthUnauthorizedException
refresh
in interface AuthSession
AuthUnauthorizedException
protected BotAuthenticatorRsaImpl getAuthenticator()