Class: HmacWithSha256Signature

HmacWithSha256Signature

new HmacWithSha256Signature(value)

An HmacWithSha256Signature holds the signature bits and other info representing an HmacWithSha256 signature in a packet. Create a new HmacWithSha256Signature object, possibly copying values from another object.
Parameters:
Name Type Description
value HmacWithSha256Signature (optional) If value is a HmacWithSha256Signature, copy its values. If value is omitted, the keyLocator is the default with unspecified values and the signature is unspecified.
Source:

Methods

clone() → {HmacWithSha256Signature}

Create a new HmacWithSha256Signature which is a copy of this object.
Source:
Returns:
A new object which is a copy of this object.
Type
HmacWithSha256Signature

getChangeCount() → {number}

Get the change count, which is incremented each time this object (or a child object) is changed.
Source:
Returns:
The change count.
Type
number

getKeyLocator() → {KeyLocator}

Get the key locator.
Source:
Returns:
The key locator.
Type
KeyLocator

getSignature() → {Blob}

Get the data packet's signature bytes.
Source:
Returns:
The signature bytes. If not specified, the value isNull().
Type
Blob

getSignatureAsBuffer()

Deprecated:
  • Use getSignature. This method returns a Buffer which is the former behavior of getSignature, and should only be used while updating your code.
Source:

setKeyLocator(keyLocator)

Set the key locator to a copy of the given keyLocator.
Parameters:
Name Type Description
keyLocator KeyLocator The KeyLocator to copy.
Source:

setSignature(signature)

Set the data packet's signature bytes.
Parameters:
Name Type Description
signature Blob
Source: