@API(status=STABLE)
public interface AuthSession
refresh()
will trigger a re-auth against the API endpoints.
You should keep using the same token until you receive a HTTP 401, at which you should re-authenticate and get a new token for a new session.
Modifier and Type | Method and Description |
---|---|
default 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.
|
@Nullable java.lang.String getSessionToken()
@Nullable default java.lang.String getAuthorizationToken() throws AuthUnauthorizedException
AuthUnauthorizedException
@Nullable java.lang.String getKeyManagerToken()
void refresh() throws AuthUnauthorizedException
AuthUnauthorizedException