public class

ObjectIdentifier

extends Object
implements AutoCloseable
java.lang.Object
   ↳ com.pdftron.crypto.ObjectIdentifier

Class Overview

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

Summary

Nested Classes
enum ObjectIdentifier.Predefined  
Public Constructors
ObjectIdentifier(ObjectIdentifier.Predefined in_oid_enum)
Constructs an ObjectIdentifier from an enum.
ObjectIdentifier(DigestAlgorithm in_digest_algorithm_type)
Constructs an ObjectIdentifier from a DigestAlgorithm Type.
ObjectIdentifier(int[] in_arr)
Constructor from array of unsigned integer components of an object identifier.
Public Methods
long __GetHandle()
void close()
Frees the native memory of the object.
void destroy()
Frees the native memory of the object.
int[] getRawValue()
Retrieves the value of the object identifier.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.AutoCloseable

Public Constructors

public ObjectIdentifier (ObjectIdentifier.Predefined in_oid_enum)

Constructs an ObjectIdentifier from an enum. Not all possible OID values are available as enum values.

Parameters
in_oid_enum the enumerated value to use

public ObjectIdentifier (DigestAlgorithm in_digest_algorithm_type)

Constructs an ObjectIdentifier from a DigestAlgorithm Type.

Parameters
in_digest_algorithm_type -- the type enumeration corresponding to your desired digest algorithm

public ObjectIdentifier (int[] in_arr)

Constructor from array of unsigned integer components of an object identifier.

Parameters
in_arr array of integers to use

Public Methods

public long __GetHandle ()

public void close ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

public void destroy ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

public int[] getRawValue ()

Retrieves the value of the object identifier.

Returns
  • the value of the object identifier, as a container of integer components