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 with the RSA-OAEP-SHA256 wrapped DEK, all binary values Base64-encoded.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject



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

def initialize: (?algorithm: String? algorithm,

Instance Attribute Details

#algorithmString?

Returns the value of attribute algorithm.

Returns:

  • (String, nil)


7
8
9
# File 'sig/capsium/package/encryption_config.rbs', line 7

def algorithm
  @algorithm
end

#auth_tagString?

Returns the value of attribute auth_tag.

Returns:

  • (String, nil)


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

def auth_tag
  @auth_tag
end

#encrypted_dekString?

Returns the value of attribute encrypted_dek.

Returns:

  • (String, nil)


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

def encrypted_dek
  @encrypted_dek
end

#ivString?

Returns the value of attribute iv.

Returns:

  • (String, nil)


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

def iv
  @iv
end

#key_managementString?

Returns the value of attribute key_management.

Returns:

  • (String, nil)


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

def key_management
  @key_management
end

Instance Method Details

#to_hashHash[String, untyped]

Returns:

  • (Hash[String, untyped])


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

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

#to_jsonString

Parameters:

  • args (Object)

Returns:

  • (String)


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

def to_json: (*untyped args) -> String