@API(status=INTERNAL) public class AuthSessionCertImpl extends java.lang.Object implements AuthSession
AuthSession
impl for certificate authentication mode.Constructor and Description |
---|
AuthSessionCertImpl(BotAuthenticatorCertImpl authenticator) |
Modifier and Type | Method and Description |
---|---|
protected BotAuthenticatorCertImpl |
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 AuthSessionCertImpl(BotAuthenticatorCertImpl authenticator)
public java.lang.String getSessionToken()
getSessionToken
in interface AuthSession
public java.lang.String getKeyManagerToken()
getKeyManagerToken
in interface AuthSession
public void refresh() throws AuthUnauthorizedException
refresh
in interface AuthSession
AuthUnauthorizedException
protected BotAuthenticatorCertImpl getAuthenticator()