Class: PQCrypto::Seal::Inspection

Inherits:
Struct
  • Object
show all
Defined in:
lib/pq_crypto/seal/models.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#content_suite_idObject

Returns the value of attribute content_suite_id

Returns:

  • (Object)

    the current value of content_suite_id



27
28
29
# File 'lib/pq_crypto/seal/models.rb', line 27

def content_suite_id
  @content_suite_id
end

#envelope_bytesObject

Returns the value of attribute envelope_bytes

Returns:

  • (Object)

    the current value of envelope_bytes



27
28
29
# File 'lib/pq_crypto/seal/models.rb', line 27

def envelope_bytes
  @envelope_bytes
end

#padded_inner_lengthObject

Returns the value of attribute padded_inner_length

Returns:

  • (Object)

    the current value of padded_inner_length



27
28
29
# File 'lib/pq_crypto/seal/models.rb', line 27

def padded_inner_length
  @padded_inner_length
end

#padding_policy_idObject

Returns the value of attribute padding_policy_id

Returns:

  • (Object)

    the current value of padding_policy_id



27
28
29
# File 'lib/pq_crypto/seal/models.rb', line 27

def padding_policy_id
  @padding_policy_id
end

#payload_idObject

Returns the value of attribute payload_id

Returns:

  • (Object)

    the current value of payload_id



27
28
29
# File 'lib/pq_crypto/seal/models.rb', line 27

def payload_id
  @payload_id
end

#public_metadataObject

Returns the value of attribute public_metadata

Returns:

  • (Object)

    the current value of public_metadata



27
28
29
# File 'lib/pq_crypto/seal/models.rb', line 27

def 
  @public_metadata
end

#recipient_capacityObject

Returns the value of attribute recipient_capacity

Returns:

  • (Object)

    the current value of recipient_capacity



27
28
29
# File 'lib/pq_crypto/seal/models.rb', line 27

def recipient_capacity
  @recipient_capacity
end

#slot_sizeObject

Returns the value of attribute slot_size

Returns:

  • (Object)

    the current value of slot_size



27
28
29
# File 'lib/pq_crypto/seal/models.rb', line 27

def slot_size
  @slot_size
end

#wrap_suite_idObject

Returns the value of attribute wrap_suite_id

Returns:

  • (Object)

    the current value of wrap_suite_id



27
28
29
# File 'lib/pq_crypto/seal/models.rb', line 27

def wrap_suite_id
  @wrap_suite_id
end

Class Method Details

.build(header, section, envelope_bytes:) ⇒ Object



33
34
35
36
37
38
39
40
41
# File 'lib/pq_crypto/seal/models.rb', line 33

def self.build(header, section, envelope_bytes:)
  new(
    recipient_capacity: header.recipient_capacity,
    slot_size: header.slot_size,
    padded_inner_length: header.padded_inner_length,
    envelope_bytes: envelope_bytes,
    **SHARED_ENVELOPE_ATTRS.call(header, section)
  )
end