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
setErrorCode(int errorCode)

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

Added in 1.0.0
public Builder()

Public methods

build

Added in 1.0.0
public final @NonNull OAuthResponse build()

Build the response instance specified by this builder

setErrorCode

Added in 1.0.0
public final @NonNull OAuthResponse.Builder setErrorCode(int errorCode)

Set the error code to indicate the request result status

setResponseUrl

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

Set the Url of the auth response