Package com.yubico.webauthn.data
Class AuthenticatorAttestationResponse
java.lang.Object
com.yubico.webauthn.data.AuthenticatorAttestationResponse
- All Implemented Interfaces:
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 ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()boolean@NonNull AttestationObjectTheattestationObjectparsed as a domain object.@NonNull ByteArrayContains an attestation object, which is opaque to, and cryptographically protected against tampering by, the client.The authenticator data returned by the authenticator.@NonNull CollectedClientDataAuthenticatorResponse.getClientDataJSON()parsed as a domain object.@NonNull ByteArrayThe 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().AuthenticatorResponse.getAuthenticatorData()parsed as a domain object.The return value from theAuthenticatorAttestationResponse.getTransports()method.inthashCode()toString()
-
Method Details
-
getAuthenticatorData
Description copied from interface:AuthenticatorResponseThe authenticator data returned by the authenticator. See §6.1 Authenticator Data.- Specified by:
getAuthenticatorDatain interfaceAuthenticatorResponse
-
getParsedAuthenticatorData
Description copied from interface:AuthenticatorResponseAuthenticatorResponse.getAuthenticatorData()parsed as a domain object.- Specified by:
getParsedAuthenticatorDatain interfaceAuthenticatorResponse
-
builder
public static AuthenticatorAttestationResponse.AuthenticatorAttestationResponseBuilder.MandatoryStages builder() -
toBuilder
-
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
The return value from theAuthenticatorAttestationResponse.getTransports()method. -
equals
-
hashCode
public int hashCode() -
toString
-
getClientDataJSON
Description copied from interface:AuthenticatorResponseThe 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:
getClientDataJSONin interfaceAuthenticatorResponse
-
getAttestation
TheattestationObjectparsed as a domain object. -
getClientData
Description copied from interface:AuthenticatorResponseAuthenticatorResponse.getClientDataJSON()parsed as a domain object.- Specified by:
getClientDatain interfaceAuthenticatorResponse
-