Interface StartOAuthSessionResponse.Builder

  • Method Details

    • authorizationUrl

      StartOAuthSessionResponse.Builder authorizationUrl(String authorizationUrl)

      The URL to send the end user's browser to so they can grant consent. Present only when consent is required; absent when a token was available and is returned instead.

      Parameters:
      authorizationUrl - The URL to send the end user's browser to so they can grant consent. Present only when consent is required; absent when a token was available and is returned instead.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionUri

      StartOAuthSessionResponse.Builder sessionUri(String sessionUri)

      Opaque handle to the pending consent session. Present only when interactive consent is required (absent when accessToken is returned).

      Parameters:
      sessionUri - Opaque handle to the pending consent session. Present only when interactive consent is required (absent when accessToken is returned).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionStatus

      StartOAuthSessionResponse.Builder sessionStatus(String sessionStatus)

      Status of the session (IN_PROGRESS when consent is required).

      Parameters:
      sessionStatus - Status of the session (IN_PROGRESS when consent is required).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sessionStatus

      StartOAuthSessionResponse.Builder sessionStatus(SessionStatus sessionStatus)

      Status of the session (IN_PROGRESS when consent is required).

      Parameters:
      sessionStatus - Status of the session (IN_PROGRESS when consent is required).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • accessToken

      StartOAuthSessionResponse.Builder accessToken(String accessToken)

      Present only when a valid token already existed (no consent needed).

      Parameters:
      accessToken - Present only when a valid token already existed (no consent needed).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expiresAt

      Expiry of accessToken when returned.

      Parameters:
      expiresAt - Expiry of accessToken when returned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.