Summary: Ctors | Methods | Inherited Methods | [Expand All]
public class

# AlgorithmIdentifier

extends Object
implements AutoCloseable

java.lang.Object
↳ | com.pdftron.crypto.AlgorithmIdentifier

## Class Overview

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

## Summary

Public Constructors
| AlgorithmIdentifier(long impl_ptr)
| AlgorithmIdentifier(ObjectIdentifier.Predefined oid) Constructs an AlgorithmIdentifier from a Predefined enum.
| AlgorithmIdentifier(ObjectIdentifier oid) Constructs an AlgorithmIdentifier from an ObjectIdentifier.
| AlgorithmIdentifier(DigestAlgorithm digest_algorithm_type) Constructs an AlgorithmIdentifier from a DigestAlgorithm enum.
| AlgorithmIdentifier(ObjectIdentifier.Predefined oid, AlgorithmParams params) Constructs an AlgorithmIdentifier from a Predefined enum and an AlgorithmParams object.
| AlgorithmIdentifier(ObjectIdentifier oid, AlgorithmParams params) Constructs an AlgorithmIdentifier from an ObjectIdentifier and an AlgorithmParams object.
| AlgorithmIdentifier(DigestAlgorithm digest_algorithm_type, AlgorithmParams params) Constructs an AlgorithmIdentifier from a DigestAlgorithm enum and an AlgorithmParams object.

Public Methods
long | __GetHandle()
void | close() Frees the native memory of the object.
void | destroy() Frees the native memory of the object.

[Expand] Inherited Methods
From class java.lang.Object
boolean | equals(Object arg0)
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface java.lang.AutoCloseable
abstract void | close()

## Public Constructors

#### public AlgorithmIdentifier (long impl_ptr)

#### public AlgorithmIdentifier (ObjectIdentifier.Predefined oid)

Constructs an AlgorithmIdentifier from a Predefined enum.

##### Parameters

oid | The Predefined enumerated value to use.

##### Throws

PDFNetException |

#### public AlgorithmIdentifier (ObjectIdentifier oid)

Constructs an AlgorithmIdentifier from an ObjectIdentifier.

##### Parameters

oid | The ObjectIdentifier object to use.

##### Throws

PDFNetException |

#### public AlgorithmIdentifier (DigestAlgorithm digest_algorithm_type)

Constructs an AlgorithmIdentifier from a DigestAlgorithm enum.

##### Parameters

digest_algorithm_type | The enumeration value corresponding to your desired digest algorithm.

##### Throws

PDFNetException |

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

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

##### Parameters

oid | The Predefined enumerated value to use.
params | The AlgorithmParams object to use.

##### Throws

PDFNetException |

#### public AlgorithmIdentifier (ObjectIdentifier oid, AlgorithmParams params)

Constructs an AlgorithmIdentifier from an ObjectIdentifier and an AlgorithmParams object.

##### Parameters

oid | The ObjectIdentifier object to use.
params | The AlgorithmParams object to use.

##### Throws

PDFNetException |

#### public AlgorithmIdentifier (DigestAlgorithm digest_algorithm_type, AlgorithmParams params)

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

##### Parameters

digest_algorithm_type | The enumeration value corresponding to your desired digest algorithm.
params | The AlgorithmParams object to use.

##### Throws

PDFNetException |

## Public Methods

#### public long __GetHandle ()

#### public void close ()

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

##### Throws

PDFNetException |

#### public void destroy ()

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

##### Throws

PDFNetException |