@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
Name | Type |
---|---|
messageHash | string |
signature | string |
prot | string |
header | SignatureHeaderJws |
Returns
Defined in
entity/authenticity/signature_jws.ts:21
Properties
header
• 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
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
Name | Type |
---|---|
s | SignatureJWS |