Skip to main content

@bloock/sdk / SignatureJws

Class: SignatureJws

Represents a JSON Web Signature (JWS). RFC 7515.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SignatureJws(messageHash, signature, prot, header): SignatureJws

Constructs a SignatureJws object with the specified parameters.

Parameters

NameType
messageHashstring
signaturestring
protstring
headerSignatureHeaderJws

Returns

SignatureJws

Defined in

entity/authenticity/signature_jws.ts:21

Properties

header: SignatureHeaderJws

Defined in

entity/authenticity/signature_jws.ts:11


messageHash

messageHash: string

Defined in

entity/authenticity/signature_jws.ts:12


protected

protected: string

Defined in

entity/authenticity/signature_jws.ts:10


signature

signature: string

Defined in

entity/authenticity/signature_jws.ts:9

Methods

getAlg

getAlg(): SignatureAlg

Returns

SignatureAlg

Defined in

entity/authenticity/signature_jws.ts:51


toProto

toProto(): SignatureJWS

Returns

SignatureJWS

Defined in

entity/authenticity/signature_jws.ts:42


fromProto

fromProto(s): SignatureJws

Parameters

NameType
sSignatureJWS

Returns

SignatureJws

Defined in

entity/authenticity/signature_jws.ts:33