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
Modifier and TypeClassDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
boolean
@NonNull AttestationObject
TheattestationObject
parsed as a domain object.@NonNull ByteArray
Contains an attestation object, which is opaque to, and cryptographically protected against tampering by, the client.The authenticator data returned by the authenticator.@NonNull CollectedClientData
AuthenticatorResponse.getClientDataJSON()
parsed as a domain object.@NonNull ByteArray
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()
.AuthenticatorResponse.getAuthenticatorData()
parsed as a domain object.The return value from theAuthenticatorAttestationResponse.getTransports()
method.int
hashCode()
toString()
-
Method Details
-
getAuthenticatorData
Description copied from interface:AuthenticatorResponse
The authenticator data returned by the authenticator. See §6.1 Authenticator Data.- Specified by:
getAuthenticatorData
in interfaceAuthenticatorResponse
-
getParsedAuthenticatorData
Description copied from interface:AuthenticatorResponse
AuthenticatorResponse.getAuthenticatorData()
parsed as a domain object.- Specified by:
getParsedAuthenticatorData
in 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: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
-
getAttestation
TheattestationObject
parsed as a domain object. -
getClientData
Description copied from interface:AuthenticatorResponse
AuthenticatorResponse.getClientDataJSON()
parsed as a domain object.- Specified by:
getClientData
in interfaceAuthenticatorResponse
-