Class: Privy::Models::EncryptedAuthorizationKey

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/encrypted_authorization_key.rb,
sig/privy/models/encrypted_authorization_key.rbs

Defined Under Namespace

Modules: EncryptionType

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(ciphertext:, encapsulated_key:, encryption_type:) ⇒ Object

Some parameter documentations has been truncated, see Privy::Models::EncryptedAuthorizationKey for more details.

HPKE-encrypted authorization key with encapsulated key and ciphertext.

Parameters:

  • ciphertext (String)

    The encrypted authorization key corresponding to the user's current authenticati

  • encapsulated_key (String)

    Base64-encoded ephemeral public key used in the HPKE encryption process. Require

  • encryption_type (Symbol, Privy::Models::EncryptedAuthorizationKey::EncryptionType)

    The encryption type used. Currently only supports HPKE.



# File 'lib/privy/models/encrypted_authorization_key.rb', line 26

Instance Attribute Details

#ciphertextString

The encrypted authorization key corresponding to the user's current authentication session.

Parameters:

  • value (String)

Returns:

  • (String)


11
# File 'lib/privy/models/encrypted_authorization_key.rb', line 11

required :ciphertext, String

#encapsulated_keyString

Base64-encoded ephemeral public key used in the HPKE encryption process. Required for decryption.

Parameters:

  • value (String)

Returns:

  • (String)


18
# File 'lib/privy/models/encrypted_authorization_key.rb', line 18

required :encapsulated_key, String

#encryption_typeSymbol, Privy::Models::EncryptedAuthorizationKey::EncryptionType

The encryption type used. Currently only supports HPKE.

Parameters:

  • value (Privy::Models::EncryptedAuthorizationKey::encryption_type)

Returns:



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

required :encryption_type, enum: -> { Privy::EncryptedAuthorizationKey::EncryptionType }

Instance Method Details

#to_hash{

Returns:

  • ({)


23
# File 'sig/privy/models/encrypted_authorization_key.rbs', line 23

def to_hash: -> {