Package com.symphony.bdk.core.auth
Interface AuthSession
- All Known Implementing Classes:
AuthSessionImpl
,AuthSessionOboCertImpl
,AuthSessionOboImpl
@API(status=STABLE)
public interface AuthSession
Authentication session handle. The
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.
-
Method Details
-
getSessionToken
Pod's authentication token.- Returns:
- the Pod session token
-
getAuthorizationToken
Pod's Common JWT authentication token. When commonJwt.enabled is set to true in the configuration, an OAuth authentication scheme is used where the session token acts as the refresh token and the authorization token is a short lived access token.- Returns:
- the Pod Authorization token
- Throws:
AuthUnauthorizedException
-
getKeyManagerToken
KeyManager's authentication token.- Returns:
- the KeyManager token, null if OBO
-
refresh
Trigger re-authentication to refresh tokens.- Throws:
AuthUnauthorizedException
-