Class: ObjectIdentifier

Core.PDFNet. ObjectIdentifier


new ObjectIdentifier()

This class represents an object identifier (OID), as defined by ITU and used in X.509.

Extends

Members


<static> Predefined

Type:
  • number
Properties:
Name Type Description
e_commonName number
e_surname number
e_countryName number
e_localityName number
e_stateOrProvinceName number
e_streetAddress number
e_organizationName number
e_organizationalUnitName number
e_SHA1 number
e_SHA256 number
e_SHA384 number
e_SHA512 number
e_RIPEMD160 number
e_RSA_encryption_PKCS1 number

Methods


<static> createFromDigestAlgorithm(in_algorithm)

Parameters:
Name Type Description
in_algorithm number
PDFNet.DigestAlgorithm.Type = {
	e_SHA1 : 0
	e_SHA256 : 1
	e_SHA384 : 2
	e_SHA512 : 3
	e_RIPEMD160 : 4
	e_unknown_digest_algorithm : 5
}
Returns:
A promise that resolves to an object of type: "PDFNet.ObjectIdentifier"
Type
Promise.<Core.PDFNet.ObjectIdentifier>

<static> createFromIntArray(in_list)

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

<static> createFromPredefined(in_oid_enum)

Constructs an ObjectIdentifier from an enum.
Parameters:
Name Type Description
in_oid_enum number the enumerated value to use Note: Not all possible OID values are available as enum values.
Returns:
A promise that resolves to an object of type: "PDFNet.ObjectIdentifier"
Type
Promise.<Core.PDFNet.ObjectIdentifier>

destroy()

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

getRawValue()

Retrieves the value of the object identifier.
Returns:
A promise that resolves to the value of the object identifier, as a container of integer components.
Type
Promise.<Array.<number>>

takeOwnership()

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