struct JOSE::EncryptedBinary

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(compact : String) #

[View source]

Instance Method Detail

def compact : String #

The raw compact JWE serialization (header.key.iv.ciphertext.tag).


[View source]
def peek_ciphertext : Bytes #

Returns the ciphertext bytes without decrypting.


[View source]
def peek_encrypted_key : Bytes #

Returns the wrapped CEK bytes without decrypting.


[View source]
def peek_iv : Bytes #

Returns the initialization vector bytes without decrypting.


[View source]
def peek_protected : Hash(String, JSON::Any) #

Returns the decoded protected header map without decrypting.


[View source]
def peek_tag : Bytes #

Returns the authentication tag bytes without decrypting.


[View source]
def to_s(io : IO) : Nil #
Description copied from struct Struct

Same as #inspect(io).


[View source]