pub struct AuthenticatorAttestationResponse {
pub client_data_json: Bytes,
pub authenticator_data: Bytes,
pub public_key: Option<Bytes>,
pub public_key_algorithm: i64,
pub attestation_object: Bytes,
pub transports: Option<Vec<AuthenticatorTransport>>,
}Expand description
The type represents the authenticator’s response to a client’s request for the creation of a new
PublicKeyCredential. 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 Relying Party to assess the
characteristics of the credential during registration.
https://w3c.github.io/webauthn/#iface-authenticatorattestationresponse
Fields§
§client_data_json: BytesThis attribute contains the JSON serialization of CollectedClientData passed to the
authenticator by the client in order to generate this credential. The exact JSON serialization
MUST be preserved, as the hash of the serialized client data has been computed over it.
authenticator_data: BytesThis is the authenticator Data that is contained within Attestation Object.
public_key: Option<Bytes>This is the DER SubjectPublicKeyInfo of the new credential. Or None if it is not available.
public_key_algorithm: i64This is the CoseAlgorithmIdentifier of the new credential
attestation_object: BytesThis attribute contains an attestation object, which is opaque to, and cryptographically
protected against tampering by, the client. The attestation object contains both
AuthenticatorData and an attestation statement. The former contains the Aaguid, a unique
credential ID, and the AttestedCredentialData of the credential’s 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
AuthenticatorData along with the JSON-compatible serialization of client data.
transports: Option<Vec<AuthenticatorTransport>>This field contains a sequence of zero or more unique AuthenticatorTransport values in
lexicographical order. These values are the transports that the authenticator is believed to
support, or an empty sequence if the information is unavailable. The values SHOULD be
members of AuthenticatorTransport but Relying Parties SHOULD accept and store unknown values.
Trait Implementations§
Source§impl Clone for AuthenticatorAttestationResponse
impl Clone for AuthenticatorAttestationResponse
Source§fn clone(&self) -> AuthenticatorAttestationResponse
fn clone(&self) -> AuthenticatorAttestationResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more