Pkcs11Interop  4.0.0
Static Public Member Functions | List of all members
Net.Pkcs11Interop.LowLevelAPI41.CkaUtils Class Reference

Utility class that helps to manage CK_ATTRIBUTE structure More...

Static Public Member Functions

static CK_ATTRIBUTE CreateAttribute (CKA type)
 Creates attribute of given type with no value More...
 
static CK_ATTRIBUTE CreateAttribute (uint type)
 Creates attribute of given type with no value More...
 
static CK_ATTRIBUTE CreateAttribute (CKA type, uint value)
 Creates attribute of given type with uint value More...
 
static CK_ATTRIBUTE CreateAttribute (CKA type, CKC value)
 Creates attribute of given type with CKC value More...
 
static CK_ATTRIBUTE CreateAttribute (CKA type, CKK value)
 Creates attribute of given type with CKK value More...
 
static CK_ATTRIBUTE CreateAttribute (CKA type, CKO value)
 Creates attribute of given type with CKO value More...
 
static CK_ATTRIBUTE CreateAttribute (uint type, uint value)
 Creates attribute of given type with uint value More...
 
static void ConvertValue (ref CK_ATTRIBUTE attribute, out uint value)
 Reads value of attribute and returns it as uint More...
 
static CK_ATTRIBUTE CreateAttribute (CKA type, bool value)
 Creates attribute of given type with bool value More...
 
static CK_ATTRIBUTE CreateAttribute (uint type, bool value)
 Creates attribute of given type with bool value More...
 
static void ConvertValue (ref CK_ATTRIBUTE attribute, out bool value)
 Reads value of attribute and returns it as bool More...
 
static CK_ATTRIBUTE CreateAttribute (CKA type, string value)
 Creates attribute of given type with string value More...
 
static CK_ATTRIBUTE CreateAttribute (uint type, string value)
 Creates attribute of given type with string value More...
 
static void ConvertValue (ref CK_ATTRIBUTE attribute, out string value)
 Reads value of attribute and returns it as string More...
 
static CK_ATTRIBUTE CreateAttribute (CKA type, byte[] value)
 Creates attribute of given type with byte array value More...
 
static CK_ATTRIBUTE CreateAttribute (uint type, byte[] value)
 Creates attribute of given type with byte array value More...
 
static void ConvertValue (ref CK_ATTRIBUTE attribute, out byte[] value)
 Reads value of attribute and returns it as byte array More...
 
static CK_ATTRIBUTE CreateAttribute (CKA type, DateTime value)
 Creates attribute of given type with DateTime (CK_DATE) value More...
 
static CK_ATTRIBUTE CreateAttribute (uint type, DateTime value)
 Creates attribute of given type with DateTime (CK_DATE) value More...
 
static void ConvertValue (ref CK_ATTRIBUTE attribute, out DateTime?value)
 Reads value of attribute and returns it as DateTime (CK_DATE) More...
 
static CK_ATTRIBUTE CreateAttribute (CKA type, CK_ATTRIBUTE[] value)
 Creates attribute of given type with attribute array value More...
 
static CK_ATTRIBUTE CreateAttribute (uint type, CK_ATTRIBUTE[] value)
 Creates attribute of given type with attribute array value More...
 
static void ConvertValue (ref CK_ATTRIBUTE attribute, out CK_ATTRIBUTE[] value)
 Reads value of attribute and returns it as attribute array More...
 
static CK_ATTRIBUTE CreateAttribute (CKA type, uint[] value)
 Creates attribute of given type with uint array value More...
 
static CK_ATTRIBUTE CreateAttribute (uint type, uint[] value)
 Creates attribute of given type with uint array value More...
 
static void ConvertValue (ref CK_ATTRIBUTE attribute, out uint[] value)
 Reads value of attribute and returns it as uint array More...
 
static CK_ATTRIBUTE CreateAttribute (CKA type, CKM[] value)
 Creates attribute of given type with mechanism array value More...
 
static CK_ATTRIBUTE CreateAttribute (uint type, CKM[] value)
 Creates attribute of given type with mechanism array value More...
 
static void ConvertValue (ref CK_ATTRIBUTE attribute, out CKM[] value)
 Reads value of attribute and returns it as mechanism array More...
 

Detailed Description

Utility class that helps to manage CK_ATTRIBUTE structure

Member Function Documentation

static void Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.ConvertValue ( ref CK_ATTRIBUTE  attribute,
out uint  value 
)
static

Reads value of attribute and returns it as uint

Parameters
attributeAttribute whose value should be read
valueLocation that receives attribute value
static void Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.ConvertValue ( ref CK_ATTRIBUTE  attribute,
out bool  value 
)
static

Reads value of attribute and returns it as bool

Parameters
attributeAttribute whose value should be read
valueLocation that receives attribute value
static void Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.ConvertValue ( ref CK_ATTRIBUTE  attribute,
out string  value 
)
static

Reads value of attribute and returns it as string

Parameters
attributeAttribute whose value should be read
valueLocation that receives attribute value
static void Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.ConvertValue ( ref CK_ATTRIBUTE  attribute,
out byte[]  value 
)
static

Reads value of attribute and returns it as byte array

Parameters
attributeAttribute whose value should be read
valueLocation that receives attribute value
static void Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.ConvertValue ( ref CK_ATTRIBUTE  attribute,
out DateTime?  value 
)
static

Reads value of attribute and returns it as DateTime (CK_DATE)

Parameters
attributeAttribute whose value should be read
valueLocation that receives attribute value
static void Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.ConvertValue ( ref CK_ATTRIBUTE  attribute,
out CK_ATTRIBUTE[]  value 
)
static

Reads value of attribute and returns it as attribute array

Parameters
attributeAttribute whose value should be read
valueLocation that receives attribute value
static void Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.ConvertValue ( ref CK_ATTRIBUTE  attribute,
out uint[]  value 
)
static

Reads value of attribute and returns it as uint array

Parameters
attributeAttribute whose value should be read
valueLocation that receives attribute value
static void Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.ConvertValue ( ref CK_ATTRIBUTE  attribute,
out CKM[]  value 
)
static

Reads value of attribute and returns it as mechanism array

Parameters
attributeAttribute whose value should be read
valueLocation that receives attribute value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( CKA  type)
static

Creates attribute of given type with no value

Parameters
typeAttribute type
Returns
Attribute of given type structure with no value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( uint  type)
static

Creates attribute of given type with no value

Parameters
typeAttribute type
Returns
Attribute of given type structure with no value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( CKA  type,
uint  value 
)
static

Creates attribute of given type with uint value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with uint value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( CKA  type,
CKC  value 
)
static

Creates attribute of given type with CKC value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with CKC value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( CKA  type,
CKK  value 
)
static

Creates attribute of given type with CKK value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with CKK value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( CKA  type,
CKO  value 
)
static

Creates attribute of given type with CKO value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with CKO value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( uint  type,
uint  value 
)
static

Creates attribute of given type with uint value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with uint value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( CKA  type,
bool  value 
)
static

Creates attribute of given type with bool value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with bool value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( uint  type,
bool  value 
)
static

Creates attribute of given type with bool value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with bool value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( CKA  type,
string  value 
)
static

Creates attribute of given type with string value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with string value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( uint  type,
string  value 
)
static

Creates attribute of given type with string value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with string value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( CKA  type,
byte[]  value 
)
static

Creates attribute of given type with byte array value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with byte array value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( uint  type,
byte[]  value 
)
static

Creates attribute of given type with byte array value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with byte array value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( CKA  type,
DateTime  value 
)
static

Creates attribute of given type with DateTime (CK_DATE) value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with DateTime value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( uint  type,
DateTime  value 
)
static

Creates attribute of given type with DateTime (CK_DATE) value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with DateTime value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( CKA  type,
CK_ATTRIBUTE[]  value 
)
static

Creates attribute of given type with attribute array value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with attribute array value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( uint  type,
CK_ATTRIBUTE[]  value 
)
static

Creates attribute of given type with attribute array value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with attribute array value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( CKA  type,
uint[]  value 
)
static

Creates attribute of given type with uint array value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with uint array value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( uint  type,
uint[]  value 
)
static

Creates attribute of given type with uint array value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with uint array value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( CKA  type,
CKM[]  value 
)
static

Creates attribute of given type with mechanism array value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with mechanism array value
static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI41.CkaUtils.CreateAttribute ( uint  type,
CKM[]  value 
)
static

Creates attribute of given type with mechanism array value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with mechanism array value

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