Package com.yubico.webauthn.data
Class AuthenticatorAttestationResponse
- java.lang.Object
-
- com.yubico.webauthn.data.AuthenticatorAttestationResponse
-
- All Implemented Interfaces:
AuthenticatorResponse
public final class AuthenticatorAttestationResponse extends java.lang.Object implements AuthenticatorResponse
Represents the authenticator's response to a client's request for the creation of a new public key credential. It contains information about the new credential that can be used to identify it for later use, and metadata that can be used by the WebAuthn Relying Party to assess the characteristics of the credential during registration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthenticatorAttestationResponse.AuthenticatorAttestationResponseBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthenticatorAttestationResponse.AuthenticatorAttestationResponseBuilder.MandatoryStages
builder()
boolean
equals(java.lang.Object o)
@NonNull AttestationObject
getAttestation()
TheattestationObject
parsed as a domain object.@NonNull ByteArray
getAttestationObject()
Contains an attestation object, which is opaque to, and cryptographically protected against tampering by, the client.ByteArray
getAuthenticatorData()
The authenticator data returned by the authenticator.@NonNull CollectedClientData
getClientData()
AuthenticatorResponse.getClientDataJSON()
parsed as a domain object.@NonNull ByteArray
getClientDataJSON()
The JSON-serialized client data (see §5.10.1 Client Data Used in WebAuthn Signatures (dictionaryCollectedClientData
)) passed to the authenticator by the client in the call to eithernavigator.credentials.create()
ornavigator.credentials.get()
.java.util.SortedSet<AuthenticatorTransport>
getTransports()
The return value from theAuthenticatorAttestationResponse.getTransports()
method.int
hashCode()
AuthenticatorAttestationResponse.AuthenticatorAttestationResponseBuilder
toBuilder()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.yubico.webauthn.data.AuthenticatorResponse
getParsedAuthenticatorData
-
-
-
-
Method Detail
-
getAuthenticatorData
public ByteArray getAuthenticatorData()
Description copied from interface:AuthenticatorResponse
The authenticator data returned by the authenticator. See §6.1 Authenticator Data.- Specified by:
getAuthenticatorData
in interfaceAuthenticatorResponse
-
builder
public static AuthenticatorAttestationResponse.AuthenticatorAttestationResponseBuilder.MandatoryStages builder()
-
toBuilder
public AuthenticatorAttestationResponse.AuthenticatorAttestationResponseBuilder toBuilder()
-
getAttestationObject
@NonNull public @NonNull ByteArray getAttestationObject()
Contains an attestation object, which is opaque to, and cryptographically protected against tampering by, the client. The attestation object contains both authenticator data and an attestation statement. The former contains the AAGUID, a unique credential ID, and the credential public key. The contents of the attestation statement are determined by the attestation statement format used by the authenticator. It also contains any additional information that the Relying Party's server requires to validate the attestation statement, as well as to decode and validate the authenticator data along with the JSON-serialized client data. For more details, see §6.4 Attestation, §6.4.4 Generating an Attestation Object, and Figure 5.
-
getTransports
public java.util.SortedSet<AuthenticatorTransport> getTransports()
The return value from theAuthenticatorAttestationResponse.getTransports()
method.
-
getAttestation
@NonNull public @NonNull AttestationObject getAttestation()
TheattestationObject
parsed as a domain object.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getClientDataJSON
@NonNull public @NonNull ByteArray getClientDataJSON()
Description copied from interface:AuthenticatorResponse
The JSON-serialized client data (see §5.10.1 Client Data Used in WebAuthn Signatures (dictionaryCollectedClientData
)) passed to the authenticator by the client in the call to eithernavigator.credentials.create()
ornavigator.credentials.get()
. The exact JSON serialization MUST be preserved, as the hash of the serialized client data has been computed over it.- Specified by:
getClientDataJSON
in interfaceAuthenticatorResponse
-
getClientData
@NonNull public @NonNull CollectedClientData getClientData()
Description copied from interface:AuthenticatorResponse
AuthenticatorResponse.getClientDataJSON()
parsed as a domain object.- Specified by:
getClientData
in interfaceAuthenticatorResponse
-
-