@API(status=INTERNAL) public class AuthSessionOboCertImpl extends java.lang.Object implements AuthSession
AuthSession
impl for OBO Certificate authentication mode.Constructor and Description |
---|
AuthSessionOboCertImpl(OboAuthenticatorCertImpl authenticator,
java.lang.Long userId) |
AuthSessionOboCertImpl(OboAuthenticatorCertImpl 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 AuthSessionOboCertImpl(@Nonnull OboAuthenticatorCertImpl authenticator, @Nonnull java.lang.Long userId)
public AuthSessionOboCertImpl(@Nonnull OboAuthenticatorCertImpl authenticator, @Nonnull java.lang.String 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()