# BrowserPublicKeyCredentialRequestOptions

public class **BrowserPublicKeyCredentialRequestOptions** extends [BrowserRequestOptions](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserRequestOptions)  
Parameters for a signature request from a Web Browser.

### Nested Class Summary

|---|---|---|---|
| class | [BrowserPublicKeyCredentialRequestOptions.Builder](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions.Builder) || Builder for `https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions`. |

### Inherited Constant Summary

From interface android.os.Parcelable

|---|---|---|
| int | CONTENTS_FILE_DESCRIPTOR |   |
| int | PARCELABLE_WRITE_RETURN_VALUE |   |

### Public Method Summary

|---|---|
| static [BrowserPublicKeyCredentialRequestOptions](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions) | [deserializeFromBytes](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#deserializeFromBytes(byte[]))(byte\[\] serializedBytes) De-serializes the `https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions` from bytes, reversing `https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#serializeToBytes()`. |
| boolean | [equals](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) o) |
| [AuthenticationExtensions](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/AuthenticationExtensions) | [getAuthenticationExtensions](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#getAuthenticationExtensions())() |
| byte\[\] | [getChallenge](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#getChallenge())() |
| byte\[\] | [getClientDataHash](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#getClientDataHash())() Gets value of the client data hash. |
| [Uri](https://developer.android.com/reference/android/net/Uri.html) | [getOrigin](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#getOrigin())() |
| [PublicKeyCredentialRequestOptions](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/PublicKeyCredentialRequestOptions) | [getPublicKeyCredentialRequestOptions](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#getPublicKeyCredentialRequestOptions())() |
| [Integer](https://developer.android.com/reference/java/lang/Integer.html) | [getRequestId](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#getRequestId())() |
| [Double](https://developer.android.com/reference/java/lang/Double.html) | [getTimeoutSeconds](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#getTimeoutSeconds())() |
| [TokenBinding](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/TokenBinding) | [getTokenBinding](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#getTokenBinding())() |
| int | [hashCode](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#hashCode())() |
| byte\[\] | [serializeToBytes](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#serializeToBytes())() Serializes the `https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions` to bytes. |
| void | [writeToParcel](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#writeToParcel(android.os.Parcel,%20int))([Parcel](https://developer.android.com/reference/android/os/Parcel.html) dest, int flags) |

### Inherited Method Summary

From class [com.google.android.gms.fido.fido2.api.common.BrowserRequestOptions](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserRequestOptions)

|---|---|
| abstract byte\[\] | [getClientDataHash](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserRequestOptions#getClientDataHash())() Gets value of the client data hash. |
| abstract [Uri](https://developer.android.com/reference/android/net/Uri.html) | [getOrigin](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserRequestOptions#getOrigin())() |

From class [com.google.android.gms.fido.fido2.api.common.RequestOptions](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/RequestOptions)

|---|---|
| abstract byte\[\] | [getChallenge](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/RequestOptions#getChallenge())() |
| abstract [Integer](https://developer.android.com/reference/java/lang/Integer.html) | [getRequestId](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/RequestOptions#getRequestId())() |
| abstract [Double](https://developer.android.com/reference/java/lang/Double.html) | [getTimeoutSeconds](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/RequestOptions#getTimeoutSeconds())() |
| abstract [TokenBinding](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/TokenBinding) | [getTokenBinding](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/RequestOptions#getTokenBinding())() |
| byte\[\] | [serializeToBytes](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/RequestOptions#serializeToBytes())() Serializes the `RequestOptions` to bytes. |

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface android.os.Parcelable

|---|---|
| abstract int | describeContents() |
| abstract void | writeToParcel([Parcel](https://developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |

## Public Methods

#### public static [BrowserPublicKeyCredentialRequestOptions](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions) **deserializeFromBytes** (byte\[\] serializedBytes)

De-serializes the `https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions` from bytes, reversing
`https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#serializeToBytes()`.

##### Returns

- The deserialized `BrowserPublicKeyCredentialRequestOptions`.

#### public boolean **equals** ([Object](https://developer.android.com/reference/java/lang/Object.html) o)

#### public [AuthenticationExtensions](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/AuthenticationExtensions) **getAuthenticationExtensions** ()

#### public byte\[\] **getChallenge** ()

#### public byte\[\] **getClientDataHash** ()

Gets value of the client data hash.

#### public [Uri](https://developer.android.com/reference/android/net/Uri.html) **getOrigin** ()

#### public [PublicKeyCredentialRequestOptions](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/PublicKeyCredentialRequestOptions) **getPublicKeyCredentialRequestOptions** ()

#### public [Integer](https://developer.android.com/reference/java/lang/Integer.html) **getRequestId** ()

#### public [Double](https://developer.android.com/reference/java/lang/Double.html) **getTimeoutSeconds** ()

#### public [TokenBinding](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/TokenBinding)
**getTokenBinding** ()

#### public int **hashCode** ()

#### public byte\[\] **serializeToBytes** ()

Serializes the `https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions` to bytes. Use `https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/BrowserPublicKeyCredentialRequestOptions#deserializeFromBytes(byte[])` to deserialize.

##### Returns

- the serialized byte array.

#### public void **writeToParcel** ([Parcel](https://developer.android.com/reference/android/os/Parcel.html) dest, int flags)