Class: Privy::Models::PasskeyAttestationResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/passkey_attestation_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(attestation_object:, client_data_json:, authenticator_data: nil, public_key: nil, public_key_algorithm: nil, transports: nil) ⇒ Object

The authenticator attestation response from a WebAuthn registration ceremony.

Parameters:

  • attestation_object (String)
  • client_data_json (String)
  • authenticator_data (String) (defaults to: nil)
  • public_key (String) (defaults to: nil)
  • public_key_algorithm (Float) (defaults to: nil)
  • transports (Array<String>) (defaults to: nil)


# File 'lib/privy/models/passkey_attestation_response.rb', line 36

Instance Attribute Details

#attestation_objectString

Returns:

  • (String)


9
# File 'lib/privy/models/passkey_attestation_response.rb', line 9

required :attestation_object, String

#authenticator_dataString?

Returns:

  • (String, nil)


19
# File 'lib/privy/models/passkey_attestation_response.rb', line 19

optional :authenticator_data, String

#client_data_jsonString

Returns:

  • (String)


14
# File 'lib/privy/models/passkey_attestation_response.rb', line 14

required :client_data_json, String

#public_keyString?

Returns:

  • (String, nil)


24
# File 'lib/privy/models/passkey_attestation_response.rb', line 24

optional :public_key, String

#public_key_algorithmFloat?

Returns:

  • (Float, nil)


29
# File 'lib/privy/models/passkey_attestation_response.rb', line 29

optional :public_key_algorithm, Float

#transportsArray<String>?

Returns:

  • (Array<String>, nil)


34
# File 'lib/privy/models/passkey_attestation_response.rb', line 34

optional :transports, Privy::Internal::Type::ArrayOf[String]