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 java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PublicKeyCredential.PublicKeyCredentialBuilder.MandatoryStages
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 therawId
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)
ThePublicKeyCredential
's type value is the string "public-key".
-
-
-
Method Detail
-
id
public PublicKeyCredential.PublicKeyCredentialBuilder<A,B> id(@NonNull @NonNull ByteArray id)
The raw Credential ID of this credential, corresponding to therawId
attribute in the WebAuthn API.- Returns:
this
.
-
response
public PublicKeyCredential.PublicKeyCredentialBuilder<A,B> response(@NonNull A 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
public PublicKeyCredential<A,B> build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-