public final class PublicKeyCredential<A extends AuthenticatorResponse,B extends ClientExtensionOutputs>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PublicKeyCredential.PublicKeyCredentialBuilder<A extends AuthenticatorResponse,B extends ClientExtensionOutputs> |
| Modifier and Type | Method and Description |
|---|---|
static <A extends AuthenticatorResponse,B extends ClientExtensionOutputs> |
builder() |
boolean |
equals(java.lang.Object o) |
B |
getClientExtensionResults()
A map containing extension identifier → client extension output entries produced by the extension’s client
extension processing.
|
@NonNull ByteArray |
getId()
The raw Credential ID of this credential, corresponding to the
rawId attribute in the WebAuthn API. |
A |
getResponse()
The authenticator's response to the client’s request to either create a public key credential, or generate an
authentication assertion.
|
@NonNull PublicKeyCredentialType |
getType()
The
PublicKeyCredential's type value is the string "public-key". |
int |
hashCode() |
PublicKeyCredential.PublicKeyCredentialBuilder<A,B> |
toBuilder() |
java.lang.String |
toString() |
public static <A extends AuthenticatorResponse,B extends ClientExtensionOutputs> PublicKeyCredential.PublicKeyCredentialBuilder.MandatoryStages builder()
public PublicKeyCredential.PublicKeyCredentialBuilder<A,B> toBuilder()
@NonNull public @NonNull ByteArray getId()
rawId attribute in the WebAuthn API.@NonNull public A getResponse()
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.
@NonNull public B getClientExtensionResults()
@NonNull public @NonNull PublicKeyCredentialType getType()
PublicKeyCredential's type value is the string "public-key".public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object