Pkcs11Interop  5.1.2
Static Public Member Functions | List of all members
Net.Pkcs11Interop.LowLevelAPI81.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 (NativeULong type)
 Creates attribute of given type with no value More...
 
static CK_ATTRIBUTE CreateAttribute (CKA type, NativeULong value)
 Creates attribute of given type with NativeULong 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 (NativeULong type, NativeULong value)
 Creates attribute of given type with NativeULong value More...
 
static void ConvertValue (ref CK_ATTRIBUTE attribute, out NativeULong value)
 Reads value of attribute and returns it as NativeULong More...
 
static CK_ATTRIBUTE CreateAttribute (CKA type, bool value)
 Creates attribute of given type with bool value More...
 
static CK_ATTRIBUTE CreateAttribute (NativeULong 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 (NativeULong 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 (NativeULong 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 (NativeULong 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 (NativeULong 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, NativeULong[] value)
 Creates attribute of given type with NativeULong array value More...
 
static CK_ATTRIBUTE CreateAttribute (NativeULong type, NativeULong[] value)
 Creates attribute of given type with NativeULong array value More...
 
static void ConvertValue (ref CK_ATTRIBUTE attribute, out NativeULong[] value)
 Reads value of attribute and returns it as NativeULong array More...
 
static CK_ATTRIBUTE CreateAttribute (CKA type, CKM[] value)
 Creates attribute of given type with mechanism array value More...
 
static CK_ATTRIBUTE CreateAttribute (NativeULong 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

◆ ConvertValue() [1/8]

static void Net.Pkcs11Interop.LowLevelAPI81.CkaUtils.ConvertValue ( ref CK_ATTRIBUTE  attribute,
out NativeULong  value 
)
static

Reads value of attribute and returns it as NativeULong

Parameters
attributeAttribute whose value should be read
valueLocation that receives attribute value

◆ ConvertValue() [2/8]

static void Net.Pkcs11Interop.LowLevelAPI81.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

◆ ConvertValue() [3/8]

static void Net.Pkcs11Interop.LowLevelAPI81.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

◆ ConvertValue() [4/8]

static void Net.Pkcs11Interop.LowLevelAPI81.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

◆ ConvertValue() [5/8]

static void Net.Pkcs11Interop.LowLevelAPI81.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

◆ ConvertValue() [6/8]

static void Net.Pkcs11Interop.LowLevelAPI81.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

◆ ConvertValue() [7/8]

static void Net.Pkcs11Interop.LowLevelAPI81.CkaUtils.ConvertValue ( ref CK_ATTRIBUTE  attribute,
out NativeULong []  value 
)
static

Reads value of attribute and returns it as NativeULong array

Parameters
attributeAttribute whose value should be read
valueLocation that receives attribute value

◆ ConvertValue() [8/8]

static void Net.Pkcs11Interop.LowLevelAPI81.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

◆ CreateAttribute() [1/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.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

◆ CreateAttribute() [2/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.CkaUtils.CreateAttribute ( NativeULong  type)
static

Creates attribute of given type with no value

Parameters
typeAttribute type
Returns
Attribute of given type structure with no value

◆ CreateAttribute() [3/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.CkaUtils.CreateAttribute ( CKA  type,
NativeULong  value 
)
static

Creates attribute of given type with NativeULong value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with NativeULong value

◆ CreateAttribute() [4/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.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

◆ CreateAttribute() [5/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.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

◆ CreateAttribute() [6/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.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

◆ CreateAttribute() [7/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.CkaUtils.CreateAttribute ( NativeULong  type,
NativeULong  value 
)
static

Creates attribute of given type with NativeULong value

Parameters
typeAttribute type
valueAttribute value
Returns
Attribute of given type with NativeULong value

◆ CreateAttribute() [8/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.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

◆ CreateAttribute() [9/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.CkaUtils.CreateAttribute ( NativeULong  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

◆ CreateAttribute() [10/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.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

◆ CreateAttribute() [11/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.CkaUtils.CreateAttribute ( NativeULong  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

◆ CreateAttribute() [12/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.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

◆ CreateAttribute() [13/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.CkaUtils.CreateAttribute ( NativeULong  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

◆ CreateAttribute() [14/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.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

◆ CreateAttribute() [15/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.CkaUtils.CreateAttribute ( NativeULong  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

◆ CreateAttribute() [16/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.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

◆ CreateAttribute() [17/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.CkaUtils.CreateAttribute ( NativeULong  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

◆ CreateAttribute() [18/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.CkaUtils.CreateAttribute ( CKA  type,
NativeULong []  value 
)
static

Creates attribute of given type with NativeULong array value

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

◆ CreateAttribute() [19/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.CkaUtils.CreateAttribute ( NativeULong  type,
NativeULong []  value 
)
static

Creates attribute of given type with NativeULong array value

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

◆ CreateAttribute() [20/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.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

◆ CreateAttribute() [21/21]

static CK_ATTRIBUTE Net.Pkcs11Interop.LowLevelAPI81.CkaUtils.CreateAttribute ( NativeULong  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: