Google is committed to advancing racial equity for Black communities. See how.

BrowserPublicKeyCredentialCreationOptions.Builder

public static final class BrowserPublicKeyCredentialCreationOptions.Builder extends Object

Public Constructor Summary

Public Method Summary

BrowserPublicKeyCredentialCreationOptions
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
setOrigin(Uri origin)
Sets the origin on whose behalf the calling browser is requesting a registration operation.
BrowserPublicKeyCredentialCreationOptions.Builder
setPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptions publicKeyCredentialCreationOptions)
Sets the parameters to dictate the client behavior during this registration session.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

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.