Show / Hide Table of Contents

# Class AlgorithmIdentifier

This class represents an algorithm identifier, as defined by ITU and used in X.509.

##### Inheritance

object
AlgorithmIdentifier

##### Implements

IDisposable

##### Inherited Members

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

###### Namespace: pdftron.Crypto

###### Assembly: PDFNet.dll

##### Syntax

    public sealed class AlgorithmIdentifier : IDisposable

### Constructors

#### AlgorithmIdentifier(Type)

Constructs an AlgorithmIdentifier from a DigestAlgorithm enum.

##### Declaration

    public AlgorithmIdentifier(DigestAlgorithm.Type digest_algorithm_type)

##### Parameters

Type | Name | Description
--- | --- | ---
DigestAlgorithm.Type | digest_algorithm_type | The enumeration value corresponding to your desired digest algorithm.

#### AlgorithmIdentifier(Type, AlgorithmParams)

Constructs an AlgorithmIdentifier from a DigestAlgorithm enum and an AlgorithmParams object.

##### Declaration

    public AlgorithmIdentifier(DigestAlgorithm.Type digest_algorithm_type, AlgorithmParams @params)

##### Parameters

Type | Name | Description
--- | --- | ---
DigestAlgorithm.Type | digest_algorithm_type | The enumeration value corresponding to your desired digest algorithm.
AlgorithmParams | params | The AlgorithmParams object to use.

#### AlgorithmIdentifier(ObjectIdentifier)

Constructs an AlgorithmIdentifier from an ObjectIdentifier.

##### Declaration

    public AlgorithmIdentifier(ObjectIdentifier oid)

##### Parameters

Type | Name | Description
--- | --- | ---
ObjectIdentifier | oid | The ObjectIdentifier object to use.

#### AlgorithmIdentifier(ObjectIdentifier, AlgorithmParams)

Constructs an AlgorithmIdentifier from an ObjectIdentifier and an AlgorithmParams object.

##### Declaration

    public AlgorithmIdentifier(ObjectIdentifier oid, AlgorithmParams @params)

##### Parameters

Type | Name | Description
--- | --- | ---
ObjectIdentifier | oid | The ObjectIdentifier object to use.
AlgorithmParams | params | The AlgorithmParams object to use.

#### AlgorithmIdentifier(Predefined)

Constructs an AlgorithmIdentifier from a Predefined enum.

##### Declaration

    public AlgorithmIdentifier(ObjectIdentifier.Predefined oid)

##### Parameters

Type | Name | Description
--- | --- | ---
ObjectIdentifier.Predefined | oid | The Predefined enumerated value to use.

#### AlgorithmIdentifier(Predefined, AlgorithmParams)

Constructs an AlgorithmIdentifier from a Predefined enum and an AlgorithmParams object.

##### Declaration

    public AlgorithmIdentifier(ObjectIdentifier.Predefined oid, AlgorithmParams @params)

##### Parameters

Type | Name | Description
--- | --- | ---
ObjectIdentifier.Predefined | oid | The Predefined enumerated value to use.
AlgorithmParams | params | The AlgorithmParams object to use.

### Methods

#### Dispose()

##### Declaration

    public override sealed void Dispose()

#### Dispose(bool)

##### Declaration

    [HandleProcessCorruptedStateExceptions]
    protected void Dispose(bool A_0)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | A_0 |

#### ~AlgorithmIdentifier()

##### Declaration

    protected ~AlgorithmIdentifier()

### Implements

IDisposable