Class: JOSE::EncryptedBinary
- Inherits:
-
String
- Object
- String
- JOSE::EncryptedBinary
- Defined in:
- lib/jose/jwe.rb
Instance Method Summary collapse
-
#expand ⇒ JOSE::EncryptedMap
Expands a compacted encrypted binary or list of encrypted binaries into a map.
-
#peek_ciphertext ⇒ String
Returns the decoded ciphertext portion of a encrypted binary or map without decrypting the ciphertext.
-
#peek_encrypted_key ⇒ String
Returns the decoded encrypted key portion of a encrypted binary or map without decrypting the ciphertext.
-
#peek_iv ⇒ String
Returns the decoded initialization vector portion of a encrypted binary or map without decrypting the ciphertext.
-
#peek_protected ⇒ JOSE::Map
Returns the decoded protected portion of a encrypted binary or map without decrypting the ciphertext.
-
#peek_tag ⇒ String
Returns the decoded tag portion of a encrypted binary or map without decrypting the ciphertext.
Instance Method Details
#expand ⇒ JOSE::EncryptedMap
Expands a compacted encrypted binary or list of encrypted binaries into a map.
7 8 9 |
# File 'lib/jose/jwe.rb', line 7 def return JOSE::JWE.(self) end |
#peek_ciphertext ⇒ String
Returns the decoded ciphertext portion of a encrypted binary or map without decrypting the ciphertext.
14 15 16 |
# File 'lib/jose/jwe.rb', line 14 def peek_ciphertext return JOSE::JWE.peek_ciphertext(self) end |
#peek_encrypted_key ⇒ String
Returns the decoded encrypted key portion of a encrypted binary or map without decrypting the ciphertext.
21 22 23 |
# File 'lib/jose/jwe.rb', line 21 def peek_encrypted_key return JOSE::JWE.peek_encrypted_key(self) end |
#peek_iv ⇒ String
Returns the decoded initialization vector portion of a encrypted binary or map without decrypting the ciphertext.
28 29 30 |
# File 'lib/jose/jwe.rb', line 28 def peek_iv return JOSE::JWE.peek_iv(self) end |
#peek_protected ⇒ JOSE::Map
Returns the decoded protected portion of a encrypted binary or map without decrypting the ciphertext.
35 36 37 |
# File 'lib/jose/jwe.rb', line 35 def peek_protected return JOSE::JWE.peek_protected(self) end |