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 classAuthenticatorAttestationResponse.AuthenticatorAttestationResponseBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthenticatorAttestationResponse.AuthenticatorAttestationResponseBuilder.MandatoryStagesbuilder()booleanequals(java.lang.Object o)@NonNull AttestationObjectgetAttestation()TheattestationObjectparsed as a domain object.@NonNull ByteArraygetAttestationObject()Contains an attestation object, which is opaque to, and cryptographically protected against tampering by, the client.ByteArraygetAuthenticatorData()The authenticator data returned by the authenticator.@NonNull CollectedClientDatagetClientData()AuthenticatorResponse.getClientDataJSON()parsed as a domain object.@NonNull ByteArraygetClientDataJSON()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().inthashCode()AuthenticatorAttestationResponse.AuthenticatorAttestationResponseBuildertoBuilder()java.lang.StringtoString()-
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:AuthenticatorResponseThe authenticator data returned by the authenticator. See §6.1 Authenticator Data.- Specified by:
getAuthenticatorDatain 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.
-
getAttestation
@NonNull public @NonNull AttestationObject getAttestation()
TheattestationObjectparsed as a domain object.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getClientDataJSON
@NonNull public @NonNull ByteArray 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
-
getClientData
@NonNull public @NonNull CollectedClientData getClientData()
Description copied from interface:AuthenticatorResponseAuthenticatorResponse.getClientDataJSON()parsed as a domain object.- Specified by:
getClientDatain interfaceAuthenticatorResponse
-
-