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

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

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.