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
From interface java.lang.AutoCloseable

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.

public AlgorithmIdentifier (ObjectIdentifier oid)

Constructs an AlgorithmIdentifier from an ObjectIdentifier.

Parameters
oid The ObjectIdentifier object to use.

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.

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.

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.

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.

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.

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.