Page Summary
-
BrowserPublicKeyCredentialCreationOptions.Builderis a builder class forBrowserPublicKeyCredentialCreationOptions. -
It has a constructor to create a new builder instance.
-
It includes methods to set the client data hash, origin, and public key credential creation options.
-
The
build()method is used to construct the finalBrowserPublicKeyCredentialCreationOptionsobject.
Builder for
BrowserPublicKeyCredentialCreationOptions.
Public Constructor Summary
|
Builder()
The constructor of
BrowserPublicKeyCredentialCreationOptions.Builder.
|
Public Method Summary
| BrowserPublicKeyCredentialCreationOptions |
build()
Builds the
BrowserPublicKeyCredentialCreationOptions object.
|
| BrowserPublicKeyCredentialCreationOptions.Builder |
setClientDataHash(byte[] clientDataHash)
Sets a clientDataHash value to sign over in place of assembling and hashing
clientDataJSON during the signature request.
|
| BrowserPublicKeyCredentialCreationOptions.Builder | |
| BrowserPublicKeyCredentialCreationOptions.Builder |
setPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptions
publicKeyCredentialCreationOptions)
Sets the parameters to dictate the client behavior during this registration
session.
|
Inherited Method Summary
Public Constructors
public Builder ()
The constructor of
BrowserPublicKeyCredentialCreationOptions.Builder.
Public Methods
public BrowserPublicKeyCredentialCreationOptions build ()
Builds the
BrowserPublicKeyCredentialCreationOptions object.
public BrowserPublicKeyCredentialCreationOptions.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
AuthenticatorAttestationResponse will return an invalid value for
getClientDataJSON(). Generally, browser clients should use
PublicKeyCredentialCreationOptions.Builder.setChallenge(byte[]) instead.
public BrowserPublicKeyCredentialCreationOptions.Builder setOrigin (Uri origin)
Sets the origin on whose behalf the calling browser is requesting a registration operation.
public BrowserPublicKeyCredentialCreationOptions.Builder setPublicKeyCredentialCreationOptions (PublicKeyCredentialCreationOptions publicKeyCredentialCreationOptions)
Sets the parameters to dictate the client behavior during this registration session.