Pkcs11Interop  5.1.2
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
Net.Pkcs11Interop.HighLevelAPI81.Mechanism Class Reference

Mechanism and its parameters (CK_MECHANISM alternative) More...

Inherits Net.Pkcs11Interop.HighLevelAPI.IMechanism.

Public Member Functions

object ToMarshalableStructure ()
 Returns managed object corresponding to CK_MECHANISM structure that can be marshaled to an unmanaged block of memory More...
 
 Mechanism (ulong type)
 Creates mechanism of given type with no parameter More...
 
 Mechanism (CKM type)
 Creates mechanism of given type with no parameter More...
 
 Mechanism (ulong type, byte[] parameter)
 Creates mechanism of given type with byte array parameter More...
 
 Mechanism (CKM type, byte[] parameter)
 Creates mechanism of given type with byte array parameter More...
 
 Mechanism (ulong type, IMechanismParams parameter)
 Creates mechanism of given type with object parameter More...
 
 Mechanism (CKM type, IMechanismParams parameter)
 Creates mechanism of given type with object parameter More...
 
void Dispose ()
 Disposes object More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 Disposes object More...
 

Protected Attributes

bool _disposed = false
 Flag indicating whether instance has been disposed More...
 
CK_MECHANISM _ckMechanism
 Low level mechanism structure More...
 
IMechanismParams _mechanismParams = null
 High level object with mechanism parameters More...
 

Properties

ulong Type [get]
 The type of mechanism More...
 
- Properties inherited from Net.Pkcs11Interop.HighLevelAPI.IMechanism
ulong Type [get]
 The type of mechanism More...
 

Detailed Description

Mechanism and its parameters (CK_MECHANISM alternative)

Constructor & Destructor Documentation

◆ Mechanism() [1/6]

Net.Pkcs11Interop.HighLevelAPI81.Mechanism.Mechanism ( ulong  type)

Creates mechanism of given type with no parameter

Parameters
typeMechanism type

◆ Mechanism() [2/6]

Net.Pkcs11Interop.HighLevelAPI81.Mechanism.Mechanism ( CKM  type)

Creates mechanism of given type with no parameter

Parameters
typeMechanism type

◆ Mechanism() [3/6]

Net.Pkcs11Interop.HighLevelAPI81.Mechanism.Mechanism ( ulong  type,
byte []  parameter 
)

Creates mechanism of given type with byte array parameter

Parameters
typeMechanism type
parameterMechanism parameter

◆ Mechanism() [4/6]

Net.Pkcs11Interop.HighLevelAPI81.Mechanism.Mechanism ( CKM  type,
byte []  parameter 
)

Creates mechanism of given type with byte array parameter

Parameters
typeMechanism type
parameterMechanism parameter

◆ Mechanism() [5/6]

Net.Pkcs11Interop.HighLevelAPI81.Mechanism.Mechanism ( ulong  type,
IMechanismParams  parameter 
)

Creates mechanism of given type with object parameter

Parameters
typeMechanism type
parameterMechanism parameter

◆ Mechanism() [6/6]

Net.Pkcs11Interop.HighLevelAPI81.Mechanism.Mechanism ( CKM  type,
IMechanismParams  parameter 
)

Creates mechanism of given type with object parameter

Parameters
typeMechanism type
parameterMechanism parameter

Member Function Documentation

◆ Dispose() [1/2]

void Net.Pkcs11Interop.HighLevelAPI81.Mechanism.Dispose ( )

Disposes object

◆ Dispose() [2/2]

virtual void Net.Pkcs11Interop.HighLevelAPI81.Mechanism.Dispose ( bool  disposing)
protectedvirtual

Disposes object

Parameters
disposingFlag indicating whether managed resources should be disposed

◆ ToMarshalableStructure()

object Net.Pkcs11Interop.HighLevelAPI81.Mechanism.ToMarshalableStructure ( )

Returns managed object corresponding to CK_MECHANISM structure that can be marshaled to an unmanaged block of memory

Returns
A managed object holding the data to be marshaled. This object must be an instance of a formatted class.

Implements Net.Pkcs11Interop.HighLevelAPI.IMechanism.

Member Data Documentation

◆ _ckMechanism

CK_MECHANISM Net.Pkcs11Interop.HighLevelAPI81.Mechanism._ckMechanism
protected

Low level mechanism structure

◆ _disposed

bool Net.Pkcs11Interop.HighLevelAPI81.Mechanism._disposed = false
protected

Flag indicating whether instance has been disposed

◆ _mechanismParams

IMechanismParams Net.Pkcs11Interop.HighLevelAPI81.Mechanism._mechanismParams = null
protected

High level object with mechanism parameters

Property Documentation

◆ Type

ulong Net.Pkcs11Interop.HighLevelAPI81.Mechanism.Type
get

The type of mechanism


The documentation for this class was generated from the following file: