Class AlgorithmIdentifier
This class represents an algorithm identifier, as defined by ITU and used in X.509.
Implements
Inherited Members
Namespace: pdftron.Crypto
Assembly: PDFTronDotNet.dll
Syntax
public class AlgorithmIdentifier : IDisposable
Constructors
AlgorithmIdentifier(IntPtr)
Declaration
public AlgorithmIdentifier(IntPtr impl_ptr)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | impl_ptr |
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 parameters)
Parameters
Type | Name | Description |
---|---|---|
DigestAlgorithm.Type | digest_algorithm_type | The enumeration value corresponding to your desired digest algorithm. |
AlgorithmParams | parameters | 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 parameters)
Parameters
Type | Name | Description |
---|---|---|
ObjectIdentifier | oid | The ObjectIdentifier object to use. |
AlgorithmParams | parameters | 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 parameters)
Parameters
Type | Name | Description |
---|---|---|
ObjectIdentifier.Predefined | oid | The Predefined enumerated value to use. |
AlgorithmParams | parameters | The AlgorithmParams object to use. |
Methods
CreateInternal(IntPtr)
Declaration
public static AlgorithmIdentifier CreateInternal(IntPtr imp)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | imp |
Returns
Type | Description |
---|---|
AlgorithmIdentifier |
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 |
~AlgorithmIdentifier()
Declaration
protected ~AlgorithmIdentifier()