public static class PublicKeyCredential.PublicKeyCredentialBuilder<A extends AuthenticatorResponse,B extends ClientExtensionOutputs>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
PublicKeyCredential.PublicKeyCredentialBuilder.MandatoryStages |
Modifier and Type | Method and Description |
---|---|
PublicKeyCredential<A,B> |
build() |
PublicKeyCredential.PublicKeyCredentialBuilder<A,B> |
clientExtensionResults(B clientExtensionResults)
A map containing extension identifier → client extension output entries produced by the extension’s client
extension processing.
|
PublicKeyCredential.PublicKeyCredentialBuilder<A,B> |
id(@NonNull ByteArray id)
The raw Credential ID of this credential, corresponding to the
rawId attribute in the WebAuthn API. |
PublicKeyCredential.PublicKeyCredentialBuilder<A,B> |
response(A response)
The authenticator's response to the client’s request to either create a public key credential, or generate an
authentication assertion.
|
java.lang.String |
toString() |
PublicKeyCredential.PublicKeyCredentialBuilder<A,B> |
type(@NonNull PublicKeyCredentialType type)
The
PublicKeyCredential 's type value is the string "public-key". |
public PublicKeyCredential.PublicKeyCredentialBuilder<A,B> id(@NonNull @NonNull ByteArray id)
rawId
attribute in the WebAuthn API.public PublicKeyCredential.PublicKeyCredentialBuilder<A,B> response(@NonNull A response)
If the PublicKeyCredential
was created in response to
navigator.credentials.create()
, this attribute’s value will
be an AuthenticatorAttestationResponse
, otherwise, the PublicKeyCredential
was created in
response to
navigator.credentials.get()
, and this attribute’s value will
be an AuthenticatorAssertionResponse
.
public PublicKeyCredential.PublicKeyCredentialBuilder<A,B> clientExtensionResults(@NonNull B clientExtensionResults)
public PublicKeyCredential.PublicKeyCredentialBuilder<A,B> type(@NonNull @NonNull PublicKeyCredentialType type)
PublicKeyCredential
's type value is the string "public-key".public PublicKeyCredential<A,B> build()
public java.lang.String toString()
toString
in class java.lang.Object