Show / Hide Table of Contents

# Class ObjectIdentifier

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

##### Inheritance

object
ObjectIdentifier

##### Implements

IDisposable

##### Inherited Members

object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: pdftron.Crypto

###### Assembly: PDFTronDotNet.dll

##### Syntax

    public class ObjectIdentifier : IDisposable

### Constructors

#### ObjectIdentifier(int[])

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

##### Declaration

    public ObjectIdentifier(int[] in_arr)

##### Parameters

Type | Name | Description
--- | --- | ---
int[] | in_arr | array of integers to use

#### ObjectIdentifier(IntPtr)

##### Declaration

    public ObjectIdentifier(IntPtr impl_ptr)

##### Parameters

Type | Name | Description
--- | --- | ---
IntPtr | impl_ptr |

#### ObjectIdentifier(Type)

Constructs an ObjectIdentifier from a DigestAlgorithm Type.

##### Declaration

    public ObjectIdentifier(DigestAlgorithm.Type in_digest_algorithm_type)

##### Parameters

Type | Name | Description
--- | --- | ---
DigestAlgorithm.Type | in_digest_algorithm_type | the type enumeration corresponding to your desired digest algorithm

#### ObjectIdentifier(Predefined)

Constructs an ObjectIdentifier from an enum.

##### Declaration

    public ObjectIdentifier(ObjectIdentifier.Predefined in_oid_enum)

##### Parameters

Type | Name | Description
--- | --- | ---
ObjectIdentifier.Predefined | in_oid_enum | the enumerated value to use

##### Remarks

Not all possible OID values are available as enum values.

### Methods

#### Destroy()

##### Declaration

    public void Destroy()

#### Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

##### Declaration

    public void Dispose()

#### Dispose(bool)

##### Declaration

    protected virtual void Dispose(bool disposing)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | disposing |

#### ~ObjectIdentifier()

##### Declaration

    protected ~ObjectIdentifier()

#### GetRawValue()

Retrieves the value of the object identifier.

##### Declaration

    public uint[] GetRawValue()

##### Returns

Type | Description
--- | ---
uint[] | the value of the object identifier, as a container of integer components

### Implements

IDisposable