Class SessionCredentials

  • All Implemented Interfaces:
    CredentialsProvider, TokenSource, Serializable

    public class SessionCredentials
    extends RefreshableTokenSource
    implements CredentialsProvider, Serializable
    An implementation of RefreshableTokenSource implementing the refresh_token OAuth grant type.

    SessionCredentials are OAuth credentials with a short-lived access token, used to make requests to an API, and a long-lived refresh token, which can be used to fetch new access tokens. Calling refresh() uses the refresh token to retrieve a new access token to authenticate to APIs.

    See Also:
    Serialized Form