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(in_oid)

Returns a container full of string representations of all the values in this distinguished name that match a particular attribute's object identifier (OID). If an attribute's OID defines the corresponding value to not be of a string type, then that value will not be returned from this function.
Parameters:
Name Type Description
in_oid PDFNet.ObjectIdentifier the object identifier representing the sought attribute.
Returns:
A promise that resolves to a container of string values containing any strings associated with the supplied attribute
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