Class: Capsium::Package::EncryptionEnvelope

Inherits:
Lutaml::Model::Serializable
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeObject



16
# File 'sig/capsium/package/encryption_config.rbs', line 16

def initialize: (?algorithm: String? algorithm,

Instance Attribute Details

#algorithmString?

Returns the value of attribute algorithm.

Returns:

  • (String, nil)


9
10
11
# File 'sig/capsium/package/encryption_config.rbs', line 9

def algorithm
  @algorithm
end

#auth_tagString?

Returns the value of attribute auth_tag.

Returns:

  • (String, nil)


14
15
16
# File 'sig/capsium/package/encryption_config.rbs', line 14

def auth_tag
  @auth_tag
end

#encrypted_dekString?

Returns the value of attribute encrypted_dek.

Returns:

  • (String, nil)


11
12
13
# File 'sig/capsium/package/encryption_config.rbs', line 11

def encrypted_dek
  @encrypted_dek
end

#ivString?

Returns the value of attribute iv.

Returns:

  • (String, nil)


13
14
15
# File 'sig/capsium/package/encryption_config.rbs', line 13

def iv
  @iv
end

#key_managementString?

Returns the value of attribute key_management.

Returns:

  • (String, nil)


10
11
12
# File 'sig/capsium/package/encryption_config.rbs', line 10

def key_management
  @key_management
end

#messageString?

Returns the value of attribute message.

Returns:

  • (String, nil)


12
13
14
# File 'sig/capsium/package/encryption_config.rbs', line 12

def message
  @message
end

Instance Method Details

#to_hashHash[String, untyped]

Returns:

  • (Hash[String, untyped])


24
# File 'sig/capsium/package/encryption_config.rbs', line 24

def to_hash: () -> Hash[String, untyped]

#to_jsonString

Parameters:

  • args (Object)

Returns:

  • (String)


23
# File 'sig/capsium/package/encryption_config.rbs', line 23

def to_json: (*untyped args) -> String