Interface GetOAuthTokenResponse.Builder

  • Method Details

    • accessToken

      GetOAuthTokenResponse.Builder accessToken(String accessToken)

      The access token. Present it to the third-party API as a bearer credential.

      Parameters:
      accessToken - The access token. Present it to the third-party API as a bearer credential.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expiresAt

      GetOAuthTokenResponse.Builder expiresAt(Instant expiresAt)

      When the access token expires. Absent when the authorization server does not report an expiry, in which case the token's lifetime is whatever that server applies.

      Parameters:
      expiresAt - When the access token expires. Absent when the authorization server does not report an expiry, in which case the token's lifetime is whatever that server applies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionStatus

      GetOAuthTokenResponse.Builder sessionStatus(String sessionStatus)

      Status of the consent session named in the request, so a repeated call can tell whether the user has finished granting consent.

      Parameters:
      sessionStatus - Status of the consent session named in the request, so a repeated call can tell whether the user has finished granting consent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sessionStatus

      GetOAuthTokenResponse.Builder sessionStatus(SessionStatus sessionStatus)

      Status of the consent session named in the request, so a repeated call can tell whether the user has finished granting consent.

      Parameters:
      sessionStatus - Status of the consent session named in the request, so a repeated call can tell whether the user has finished granting consent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: