@API(status=INTERNAL) public class AuthSessionImpl extends java.lang.Object implements AuthSession
AuthSession
impl for regular authentication mode.Modifier and Type | Field and Description |
---|---|
static java.time.Duration |
LEEWAY |
Constructor and Description |
---|
AuthSessionImpl(AbstractBotAuthenticator authenticator) |
Modifier and Type | Method and Description |
---|---|
protected AbstractBotAuthenticator |
getAuthenticator()
This method is only visible for testing.
|
java.lang.String |
getAuthorizationToken()
Pod's Common JWT authentication token.
|
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 AuthSessionImpl(@Nonnull AbstractBotAuthenticator authenticator)
@Nullable public java.lang.String getSessionToken()
getSessionToken
in interface AuthSession
@Nullable public java.lang.String getAuthorizationToken() throws AuthUnauthorizedException
getAuthorizationToken
in interface AuthSession
AuthUnauthorizedException
@Nullable public java.lang.String getKeyManagerToken()
getKeyManagerToken
in interface AuthSession
public void refresh() throws AuthUnauthorizedException
refresh
in interface AuthSession
AuthUnauthorizedException
protected AbstractBotAuthenticator getAuthenticator()