Pkcs11Interop  5.1.2
Public Member Functions | Protected Member Functions | List of all members
Net.Pkcs11Interop.HighLevelAPI40.MechanismParams.CkCmsSigParams Class Reference

Parameters for the CKM_CMS_SIG mechanism More...

Inherits Net.Pkcs11Interop.HighLevelAPI.MechanismParams.ICkCmsSigParams.

Public Member Functions

 CkCmsSigParams (IObjectHandle certificateHandle, NativeULong? signingMechanism, NativeULong? digestMechanism, string contentType, byte[] requestedAttributes, byte[] requiredAttributes)
 Initializes a new instance of the CkCmsSigParams class. More...
 
object ToMarshalableStructure ()
 Returns managed object that can be marshaled to an unmanaged block of memory More...
 
void Dispose ()
 Disposes object More...
 

Protected Member Functions

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

Detailed Description

Parameters for the CKM_CMS_SIG mechanism

Constructor & Destructor Documentation

◆ CkCmsSigParams()

Net.Pkcs11Interop.HighLevelAPI40.MechanismParams.CkCmsSigParams.CkCmsSigParams ( IObjectHandle  certificateHandle,
NativeULong?  signingMechanism,
NativeULong?  digestMechanism,
string  contentType,
byte []  requestedAttributes,
byte []  requiredAttributes 
)

Initializes a new instance of the CkCmsSigParams class.

Parameters
certificateHandleObject handle for a certificate associated with the signing key
signingMechanismMechanism to use when signing a constructed CMS SignedAttributes value
digestMechanismMechanism to use when digesting the data
contentTypeString indicating complete MIME Content-type of message to be signed or null if the message is a MIME object
requestedAttributesDER-encoded list of CMS Attributes the caller requests to be included in the signed attributes
requiredAttributesDER-encoded list of CMS Attributes (with accompanying values) required to be included in the resulting signed attributes

Member Function Documentation

◆ Dispose() [1/2]

void Net.Pkcs11Interop.HighLevelAPI40.MechanismParams.CkCmsSigParams.Dispose ( )

Disposes object

◆ Dispose() [2/2]

virtual void Net.Pkcs11Interop.HighLevelAPI40.MechanismParams.CkCmsSigParams.Dispose ( bool  disposing)
protectedvirtual

Disposes object

Parameters
disposingFlag indicating whether managed resources should be disposed

◆ ToMarshalableStructure()

object Net.Pkcs11Interop.HighLevelAPI40.MechanismParams.CkCmsSigParams.ToMarshalableStructure ( )

Returns managed object 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.MechanismParams.IMechanismParams.


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