Class: JWE::Alg::Dir
- Inherits:
-
Object
- Object
- JWE::Alg::Dir
- Defined in:
- lib/jwe/alg/dir.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
Instance Method Summary collapse
- #decrypt(encrypted_cek) ⇒ Object
- #encrypt(cek) ⇒ Object
-
#initialize(key) ⇒ Dir
constructor
A new instance of Dir.
Constructor Details
#initialize(key) ⇒ Dir
Returns a new instance of Dir.
6 7 8 |
# File 'lib/jwe/alg/dir.rb', line 6 def initialize(key) self.key = key end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
4 5 6 |
# File 'lib/jwe/alg/dir.rb', line 4 def key @key end |
Instance Method Details
#decrypt(encrypted_cek) ⇒ Object
14 15 16 |
# File 'lib/jwe/alg/dir.rb', line 14 def decrypt(encrypted_cek) key end |
#encrypt(cek) ⇒ Object
10 11 12 |
# File 'lib/jwe/alg/dir.rb', line 10 def encrypt(cek) '' end |