Page Summary
-
BrowserPublicKeyCredentialRequestOptions.Builder is used to build a BrowserPublicKeyCredentialRequestOptions object.
-
The builder has a constructor and methods to set clientDataHash, origin, and PublicKeyCredentialRequestOptions.
-
The build() method creates the final BrowserPublicKeyCredentialRequestOptions object.
Builder for
BrowserPublicKeyCredentialRequestOptions.
Public Constructor Summary
|
Builder()
The constructor of
BrowserPublicKeyCredentialRequestOptions.Builder.
|
Public Method Summary
| BrowserPublicKeyCredentialRequestOptions |
build()
Builds the
BrowserPublicKeyCredentialRequestOptions object.
|
| BrowserPublicKeyCredentialRequestOptions.Builder |
setClientDataHash(byte[] clientDataHash)
Sets a clientDataHash value to sign over in place of assembling and hashing
clientDataJSON during the signature request.
|
| BrowserPublicKeyCredentialRequestOptions.Builder | |
| BrowserPublicKeyCredentialRequestOptions.Builder |
setPublicKeyCredentialRequestOptions(PublicKeyCredentialRequestOptions
publicKeyCredentialRequestOptions)
Sets the parameters to dictate client behavior during this authentication
session.
|
Inherited Method Summary
Public Constructors
public Builder ()
The constructor of
BrowserPublicKeyCredentialRequestOptions.Builder.
Public Methods
public BrowserPublicKeyCredentialRequestOptions build ()
Builds the
BrowserPublicKeyCredentialRequestOptions object.
public BrowserPublicKeyCredentialRequestOptions.Builder setClientDataHash (byte[] clientDataHash)
Sets a clientDataHash value to sign over in place of assembling and hashing clientDataJSON during the signature request.
Note: This is optional and only provided for contexts where the unhashed information
necessary to assemble WebAuthn clientDataJSON is not available. If set, the resulting
AuthenticatorAssertionResponse will return an invalid value for
getClientDataJSON(). Generally, browser clients should use
PublicKeyCredentialRequestOptions.Builder.setChallenge(byte[]) instead.
public BrowserPublicKeyCredentialRequestOptions.Builder setOrigin (Uri origin)
Sets the origin on whose behalf the calling browser is requesting an authentication operation.
public BrowserPublicKeyCredentialRequestOptions.Builder setPublicKeyCredentialRequestOptions (PublicKeyCredentialRequestOptions publicKeyCredentialRequestOptions)
Sets the parameters to dictate client behavior during this authentication session.