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 classPublicKeyCredential.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 therawIdattribute 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.StringtoString()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 therawIdattribute in the WebAuthn API.
-
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
PublicKeyCredentialwas created in response tonavigator.credentials.create(), this attribute’s value will be anAuthenticatorAttestationResponse, otherwise, thePublicKeyCredentialwas created in response tonavigator.credentials.get(), and this attribute’s value will be anAuthenticatorAssertionResponse.
-
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.
-
type
public PublicKeyCredential.PublicKeyCredentialBuilder<A,B> type(@NonNull @NonNull PublicKeyCredentialType type)
ThePublicKeyCredential's type value is the string "public-key".
-
build
public PublicKeyCredential<A,B> build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-