OAuthResponse.Builder

public final class OAuthResponse.Builder


Builder for constructing new instance of authentication response.

Summary

Public constructors

Public methods

final @NonNull OAuthResponse

Build the response instance specified by this builder

final @NonNull OAuthResponse.Builder

Set the error code to indicate the request result status

final @NonNull OAuthResponse.Builder
setResponseUrl(@NonNull Uri responseUrl)

Set the Url of the auth response

Public constructors

Builder

public final Builder()

Public methods

build

@NonNull
public final OAuthResponse build()

Build the response instance specified by this builder

setErrorCode

@NonNull
public final OAuthResponse.Builder setErrorCode(@RemoteAuthClient.Companion.ErrorCode int errorCode)

Set the error code to indicate the request result status

setResponseUrl

@NonNull
public final OAuthResponse.Builder setResponseUrl(@NonNull Uri responseUrl)

Set the Url of the auth response