Class: ZeroClick::Sellers::Encryption::Envelope
- Inherits:
-
Object
- Object
- ZeroClick::Sellers::Encryption::Envelope
- Defined in:
- lib/zeroclick/sellers/encryption.rb
Overview
A decrypted request, plus what is needed to encrypt the reply.
Instance Attribute Summary collapse
-
#cty ⇒ Object
readonly
Returns the value of attribute cty.
-
#plaintext ⇒ Object
readonly
Returns the value of attribute plaintext.
-
#protected_header ⇒ Object
readonly
Returns the value of attribute protected_header.
-
#reply_jwk ⇒ Object
readonly
Returns the value of attribute reply_jwk.
Instance Method Summary collapse
-
#initialize(plaintext:, protected_header:, cty: nil, reply_jwk: nil) ⇒ Envelope
constructor
A new instance of Envelope.
Constructor Details
#initialize(plaintext:, protected_header:, cty: nil, reply_jwk: nil) ⇒ Envelope
Returns a new instance of Envelope.
61 62 63 64 65 66 67 |
# File 'lib/zeroclick/sellers/encryption.rb', line 61 def initialize(plaintext:, protected_header:, cty: nil, reply_jwk: nil) @plaintext = plaintext @protected_header = protected_header.freeze @cty = cty @reply_jwk = reply_jwk&.freeze freeze end |
Instance Attribute Details
#cty ⇒ Object (readonly)
Returns the value of attribute cty.
59 60 61 |
# File 'lib/zeroclick/sellers/encryption.rb', line 59 def cty @cty end |
#plaintext ⇒ Object (readonly)
Returns the value of attribute plaintext.
59 60 61 |
# File 'lib/zeroclick/sellers/encryption.rb', line 59 def plaintext @plaintext end |
#protected_header ⇒ Object (readonly)
Returns the value of attribute protected_header.
59 60 61 |
# File 'lib/zeroclick/sellers/encryption.rb', line 59 def protected_header @protected_header end |
#reply_jwk ⇒ Object (readonly)
Returns the value of attribute reply_jwk.
59 60 61 |
# File 'lib/zeroclick/sellers/encryption.rb', line 59 def reply_jwk @reply_jwk end |