struct
JOSE::EncryptedBinary
- JOSE::EncryptedBinary
- Struct
- Value
- Object
Overview
Wraps a compact JWE (five base64url parts joined by dots)
and provides inspection methods without decryption.
The five dot-separated parts are: protected_header.encrypted_key.iv.ciphertext.tag.
Defined in:
jose/encrypted_binary.crConstructors
Instance Method Summary
-
#compact : String
The raw compact JWE serialization (
header.key.iv.ciphertext.tag). -
#peek_ciphertext : Bytes
Returns the ciphertext bytes without decrypting.
-
#peek_encrypted_key : Bytes
Returns the wrapped CEK bytes without decrypting.
-
#peek_iv : Bytes
Returns the initialization vector bytes without decrypting.
-
#peek_protected : Hash(String, JSON::Any)
Returns the decoded protected header map without decrypting.
-
#peek_tag : Bytes
Returns the authentication tag bytes without decrypting.
-
#to_s(io : IO) : Nil
Same as
#inspect(io).
Constructor Detail
Instance Method Detail
def peek_protected : Hash(String, JSON::Any)
#
Returns the decoded protected header map without decrypting.