@API(status=INTERNAL) public class AuthSessionOboImpl extends java.lang.Object implements AuthSession
AuthSession
impl for OBO authentication mode.Constructor and Description |
---|
AuthSessionOboImpl(OboAuthenticatorRsaImpl authenticator,
java.lang.Long userId) |
AuthSessionOboImpl(OboAuthenticatorRsaImpl authenticator,
java.lang.String username) |
Modifier and Type | Method and Description |
---|---|
protected OboAuthenticator |
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 AuthSessionOboImpl(@Nonnull OboAuthenticatorRsaImpl authenticator, @Nonnull java.lang.Long userId)
authenticator
- userId
- public AuthSessionOboImpl(@Nonnull OboAuthenticatorRsaImpl authenticator, @Nonnull java.lang.String username)
authenticator
- username
- @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 OboAuthenticator getAuthenticator()