Class: Sha256WithRsaSignature

Sha256WithRsaSignature

new Sha256WithRsaSignature(value)

Create a new Sha256WithRsaSignature object, possibly copying values from another object.
Parameters:
Name Type Description
value Sha256WithRsaSignature (optional) If value is a Sha256WithRsaSignature, copy its values. If value is omitted, the keyLocator is the default with unspecified values and the signature is unspecified.
Source:

Methods

clone() → {Sha256WithRsaSignature}

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

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: