Class: X501DistinguishedName

PDFNet. X501DistinguishedName


new X501DistinguishedName()

This class represents a distinguished name (DN) as defined in X.501. See the X.500 standards, RFC 5280, and an OID repository for more information.

Extends

Methods


destroy()

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

getAllAttributesAndValues()

Retrieves all of the attribute-type-to-value pairs in this distinguished name.
Returns:
A promise that resolves to a container of X501AttributeTypeAndValue objects
Type
Promise.<Array.<PDFNet.X501AttributeTypeAndValue>>

getStringValuesForAttribute(obj)

Parameters:
Name Type Description
obj PDFNet.ObjectIdentifier
Returns:
A promise that resolves to an object of type: "Array"
Type
Promise.<Array.<string>>

hasAttribute(in_oid)

Returns whether this distinguished name contains a particular attribute, identified by its object identifier (OID).
Parameters:
Name Type Description
in_oid PDFNet.ObjectIdentifier the object identifier representing the sought attribute.
Returns:
A promise that resolves to a boolean value representing whether this distinguished name contains the supplied attribute.
Type
Promise.<boolean>

takeOwnership()

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