BrowserPublicKeyCredentialRequestOptions.Builder

public static final class BrowserPublicKeyCredentialRequestOptions.Builder extends Object

Public Constructor Summary

Public Method Summary

BrowserPublicKeyCredentialRequestOptions
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
setOrigin(Uri origin)
Sets the origin on whose behalf the calling browser is requesting an authentication operation.
BrowserPublicKeyCredentialRequestOptions.Builder
setPublicKeyCredentialRequestOptions(PublicKeyCredentialRequestOptions publicKeyCredentialRequestOptions)
Sets the parameters to dictate client behavior during this authentication session.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

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.