Class: X509Extension

PDFNet. X509Extension


new X509Extension()

This class represents an X509v3 certificate extension. See RFC 5280 as a specification.

Extends

Methods


destroy()

Destructor
Inherited From:
Returns:
Type
Promise.<void>

getData()

Retrieves the raw binary DER-encoded data of the extension. (DER is short for Distinguished Encoding Rules.)
Returns:
A promise that resolves to a container holding the bytes of the extension in the form of binary DER-encoded data
Type
Promise.<Uint8Array>

getObjectIdentifier()

Retrieves the OID (object identifier) of the extension in the form of integer components in a container. The meaning of an OID can be determined from an OID repository.
Returns:
A promise that resolves to an ObjectIdentifier object.
Type
Promise.<PDFNet.ObjectIdentifier>

isCritical()

Retrieves whether the extension is 'critical'. See RFC 5280 for an explanation of what this means.
Returns:
A promise that resolves to a boolean representing the criticality flag of the extension.
Type
Promise.<boolean>

takeOwnership()

Take the ownership of this object, so that PDFNet.runWithCleanup won't destroy this object.
Inherited From:
Returns:
Type
void

toString()

Returns a string representation of the extension.
Returns:
A promise that resolves to a string representation of the extension. Note: Output may change in future versions.
Type
Promise.<string>