Package com.yubico.webauthn.data
Class PublicKeyCredential.PublicKeyCredentialBuilder<A extends AuthenticatorResponse,B extends ClientExtensionOutputs>
java.lang.Object
com.yubico.webauthn.data.PublicKeyCredential.PublicKeyCredentialBuilder<A,B>
- Enclosing class:
- PublicKeyCredential<A extends AuthenticatorResponse,
B extends ClientExtensionOutputs>
public static class PublicKeyCredential.PublicKeyCredentialBuilder<A extends AuthenticatorResponse,B extends ClientExtensionOutputs>
extends Object
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clientExtensionResults
(B clientExtensionResults) A map containing extension identifier → client extension output entries produced by the extension’s client extension processing.The raw Credential ID of this credential, corresponding to therawId
attribute in the WebAuthn API.The authenticator's response to the client’s request to either create a public key credential, or generate an authentication assertion.toString()
type
(@NonNull PublicKeyCredentialType type) ThePublicKeyCredential
's type value is the string "public-key".
-
Method Details
-
id
The raw Credential ID of this credential, corresponding to therawId
attribute in the WebAuthn API.- Returns:
this
.
-
response
The authenticator's response to the client’s request to either create a public key credential, or generate an authentication assertion.If the
PublicKeyCredential
was created in response tonavigator.credentials.create()
, this attribute’s value will be anAuthenticatorAttestationResponse
, otherwise, thePublicKeyCredential
was created in response tonavigator.credentials.get()
, and this attribute’s value will be anAuthenticatorAssertionResponse
.- Returns:
this
.
-
clientExtensionResults
public PublicKeyCredential.PublicKeyCredentialBuilder<A,B> clientExtensionResults(@NonNull B clientExtensionResults) A map containing extension identifier → client extension output entries produced by the extension’s client extension processing.- Returns:
this
.
-
type
public PublicKeyCredential.PublicKeyCredentialBuilder<A,B> type(@NonNull @NonNull PublicKeyCredentialType type) ThePublicKeyCredential
's type value is the string "public-key".- Returns:
this
.
-
build
-
toString
-