BeginGetCredentialRequest.Builder


public static final class BeginGetCredentialRequest.Builder
extends Object

java.lang.Object
   ↳ android.service.credentials.BeginGetCredentialRequest.Builder


Builder for BeginGetCredentialRequest.

Summary

Public constructors

Builder()

Public methods

BeginGetCredentialRequest.Builder addBeginGetCredentialOption(BeginGetCredentialOption beginGetCredentialOption)

Adds a single BeginGetCredentialOption object to the list of credential options.

BeginGetCredentialRequest build()

Builds a new BeginGetCredentialRequest instance.

BeginGetCredentialRequest.Builder setBeginGetCredentialOptions(List<BeginGetCredentialOption> getBeginCredentialOptions)

Sets the list of credential options.

BeginGetCredentialRequest.Builder setCallingAppInfo(CallingAppInfo callingAppInfo)

Sets information pertaining to the calling app.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

addBeginGetCredentialOption

Added in API level 34
public BeginGetCredentialRequest.Builder addBeginGetCredentialOption (BeginGetCredentialOption beginGetCredentialOption)

Adds a single BeginGetCredentialOption object to the list of credential options.

Parameters
beginGetCredentialOption BeginGetCredentialOption: This value cannot be null.

Returns
BeginGetCredentialRequest.Builder This value cannot be null.

Throws
NullPointerException If beginGetCredentialOption is null.

build

Added in API level 34
public BeginGetCredentialRequest build ()

Builds a new BeginGetCredentialRequest instance.

Returns
BeginGetCredentialRequest This value cannot be null.

Throws
NullPointerException If beginGetCredentialOptions is null.
IllegalArgumentException If beginGetCredentialOptions is empty, or if callingAppInfo is null or empty.

setBeginGetCredentialOptions

Added in API level 34
public BeginGetCredentialRequest.Builder setBeginGetCredentialOptions (List<BeginGetCredentialOption> getBeginCredentialOptions)

Sets the list of credential options.

Parameters
getBeginCredentialOptions List: This value cannot be null.

Returns
BeginGetCredentialRequest.Builder This value cannot be null.

Throws
NullPointerException If getBeginCredentialOptions itself or any of its elements is null.
IllegalArgumentException If getBeginCredentialOptions is empty.

setCallingAppInfo

Added in API level 34
public BeginGetCredentialRequest.Builder setCallingAppInfo (CallingAppInfo callingAppInfo)

Sets information pertaining to the calling app.

Parameters
callingAppInfo CallingAppInfo: the info object containing the package name, and app signatures This value may be null.

Returns
BeginGetCredentialRequest.Builder This value cannot be null.