struct JOSE::SignedBinary

Overview

Wraps a compact JWS serialization; the three dot-separated parts are: protected_header.payload.signature.

Defined in:

jose/signed_binary.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(compact : String) #

[View source]

Instance Method Detail

def compact : String #

The raw compact JWS serialization (header.payload.signature).


[View source]
def peek_payload : String #

Returns the decoded payload string without verifying the signature.


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

Returns the decoded protected header without verifying the signature.


[View source]
def peek_signature : Bytes #

Returns the raw signature bytes without verifying.


[View source]