Skip to main content

@bloock/sdk / SignatureHeaderJws

Class: SignatureHeaderJws

Represents the header of a JSON Web Signature (JWS). RFC 7515.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SignatureHeaderJws(alg, kid): SignatureHeaderJws

Constructs a SignatureHeaderJws object with the specified algorithm and key identifier.

Parameters

NameType
algstring
kidstring

Returns

SignatureHeaderJws

Defined in

entity/authenticity/signature_header_jws.ts:15

Properties

alg

alg: string

Defined in

entity/authenticity/signature_header_jws.ts:7


kid

kid: string

Defined in

entity/authenticity/signature_header_jws.ts:8

Methods

toProto

toProto(): SignatureHeaderJWS

Returns

SignatureHeaderJWS

Defined in

entity/authenticity/signature_header_jws.ts:24


fromProto

fromProto(s): SignatureHeaderJws

Parameters

NameType
sSignatureHeaderJWS

Returns

SignatureHeaderJws

Defined in

entity/authenticity/signature_header_jws.ts:20