new GenericSignature(value)
A GenericSignature extends Signature and holds the encoding bytes of the
SignatureInfo so that the application can process experimental signature
types. When decoding a packet, if the type of SignatureInfo is not
recognized, the library creates a GenericSignature.
Create a new GenericSignature object, possibly copying values from another
object.
Parameters:
Name | Type | Description |
---|---|---|
value |
GenericSignature | (optional) If value is a GenericSignature, copy its values. |
- Source:
Methods
clone() → {GenericSignature}
Create a new GenericSignature which is a copy of this object.
- Source:
Returns:
A new object which is a copy of this object.
- Type
- GenericSignature
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
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:
getSignatureInfoEncoding() → {Blob}
Get the bytes of the entire signature info encoding (including the type
code).
- Source:
Returns:
The encoding bytes. If not specified, the value isNull().
- Type
- Blob
getTypeCode() → {number}
Get the type code of the signature type. When wire decode calls
setSignatureInfoEncoding, it sets the type code. Note that the type code
is ignored during wire encode, which simply uses getSignatureInfoEncoding()
where the encoding already has the type code.
- Source:
Returns:
The type code, or null if not known.
- Type
- number
setSignature(signature)
Set the data packet's signature bytes.
Parameters:
Name | Type | Description |
---|---|---|
signature |
Blob |
- Source:
setSignatureInfoEncoding(signatureInfoEncoding, (optional))
Set the bytes of the entire signature info encoding (including the type
code).
Parameters:
Name | Type | Description |
---|---|---|
signatureInfoEncoding |
Blob | A Blob with the encoding bytes. |
(optional) |
number | The type code of the signature type, or null if not known. (When a GenericSignature is created by wire decoding, it sets the typeCode.) |
- Source: