Class: Capsium::Package::EncryptionEnvelope
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Capsium::Package::EncryptionEnvelope
- Defined in:
- lib/capsium/package/encryption_config.rb,
sig/capsium/package/encryption_config.rbs
Overview
The "encryption" object of signature.json in an encrypted package: the AES-256-GCM envelope. keyManagement selects how the DEK is protected: "RSA-OAEP-SHA256" carries it Base64-wrapped in encryptedDek; "OpenPGP" carries an armored OpenPGP message containing the DEK in message. iv/authTag are Base64.
Instance Attribute Summary collapse
-
#algorithm ⇒ String?
Returns the value of attribute algorithm.
-
#auth_tag ⇒ String?
Returns the value of attribute auth_tag.
-
#encrypted_dek ⇒ String?
Returns the value of attribute encrypted_dek.
-
#iv ⇒ String?
Returns the value of attribute iv.
-
#key_management ⇒ String?
Returns the value of attribute key_management.
-
#message ⇒ String?
Returns the value of attribute message.
Instance Method Summary collapse
Constructor Details
#initialize ⇒ Object
16 |
# File 'sig/capsium/package/encryption_config.rbs', line 16
def initialize: (?algorithm: String? algorithm,
|
Instance Attribute Details
#algorithm ⇒ String?
Returns the value of attribute algorithm.
9 10 11 |
# File 'sig/capsium/package/encryption_config.rbs', line 9 def algorithm @algorithm end |
#auth_tag ⇒ String?
Returns the value of attribute auth_tag.
14 15 16 |
# File 'sig/capsium/package/encryption_config.rbs', line 14 def auth_tag @auth_tag end |
#encrypted_dek ⇒ String?
Returns the value of attribute encrypted_dek.
11 12 13 |
# File 'sig/capsium/package/encryption_config.rbs', line 11 def encrypted_dek @encrypted_dek end |
#iv ⇒ String?
Returns the value of attribute iv.
13 14 15 |
# File 'sig/capsium/package/encryption_config.rbs', line 13 def iv @iv end |
#key_management ⇒ String?
Returns the value of attribute key_management.
10 11 12 |
# File 'sig/capsium/package/encryption_config.rbs', line 10 def key_management @key_management end |
#message ⇒ String?
Returns the value of attribute message.
12 13 14 |
# File 'sig/capsium/package/encryption_config.rbs', line 12 def @message end |
Instance Method Details
#to_hash ⇒ Hash[String, untyped]
24 |
# File 'sig/capsium/package/encryption_config.rbs', line 24
def to_hash: () -> Hash[String, untyped]
|
#to_json ⇒ String
23 |
# File 'sig/capsium/package/encryption_config.rbs', line 23
def to_json: (*untyped args) -> String
|