Class: COSE::Encrypt0
- Inherits:
-
SecurityMessage
- Object
- SecurityMessage
- COSE::Encrypt0
- Defined in:
- lib/cose/encrypt0.rb
Constant Summary
Constants inherited from SecurityMessage
SecurityMessage::ZERO_LENGTH_BIN_STRING
Instance Attribute Summary collapse
-
#ciphertext ⇒ Object
readonly
Returns the value of attribute ciphertext.
Attributes inherited from SecurityMessage
#protected_headers, #unprotected_headers
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ciphertext:, **keyword_arguments) ⇒ Encrypt0
constructor
A new instance of Encrypt0.
Methods inherited from SecurityMessage
#algorithm, deserialize, deserialize_headers, from_array, #headers
Constructor Details
#initialize(ciphertext:, **keyword_arguments) ⇒ Encrypt0
Returns a new instance of Encrypt0.
13 14 15 16 17 |
# File 'lib/cose/encrypt0.rb', line 13 def initialize(ciphertext:, **keyword_arguments) super(**keyword_arguments) @ciphertext = ciphertext end |
Instance Attribute Details
#ciphertext ⇒ Object (readonly)
Returns the value of attribute ciphertext.
7 8 9 |
# File 'lib/cose/encrypt0.rb', line 7 def ciphertext @ciphertext end |
Class Method Details
.keyword_arguments_for_initialize(decoded) ⇒ Object
9 10 11 |
# File 'lib/cose/encrypt0.rb', line 9 def self.keyword_arguments_for_initialize(decoded) { ciphertext: decoded[0] } end |