Pkcs11Interop
5.1.2
|
Attribute of cryptoki object (CK_ATTRIBUTE alternative) More...
Inherits Net.Pkcs11Interop.HighLevelAPI.IObjectAttribute.
Public Member Functions | |
object | ToMarshalableStructure () |
Returns managed object corresponding to CK_ATTRIBUTE structure that can be marshaled to an unmanaged block of memory More... | |
ObjectAttribute (ulong type) | |
Creates attribute of given type with no value More... | |
ObjectAttribute (CKA type) | |
Creates attribute of given type with no value More... | |
ObjectAttribute (ulong type, ulong value) | |
Creates attribute of given type with ulong value More... | |
ObjectAttribute (CKA type, ulong value) | |
Creates attribute of given type with ulong value More... | |
ObjectAttribute (CKA type, CKC value) | |
Creates attribute of given type with CKC value More... | |
ObjectAttribute (CKA type, CKK value) | |
Creates attribute of given type with CKK value More... | |
ObjectAttribute (CKA type, CKO value) | |
Creates attribute of given type with CKO value More... | |
ulong | GetValueAsUlong () |
Reads value of attribute and returns it as ulong More... | |
ObjectAttribute (ulong type, bool value) | |
Creates attribute of given type with bool value More... | |
ObjectAttribute (CKA type, bool value) | |
Creates attribute of given type with bool value More... | |
bool | GetValueAsBool () |
Reads value of attribute and returns it as bool More... | |
ObjectAttribute (ulong type, string value) | |
Creates attribute of given type with string value More... | |
ObjectAttribute (CKA type, string value) | |
Creates attribute of given type with string value More... | |
string | GetValueAsString () |
Reads value of attribute and returns it as string More... | |
ObjectAttribute (ulong type, byte[] value) | |
Creates attribute of given type with byte array value More... | |
ObjectAttribute (CKA type, byte[] value) | |
Creates attribute of given type with byte array value More... | |
byte [] | GetValueAsByteArray () |
Reads value of attribute and returns it as byte array More... | |
ObjectAttribute (ulong type, DateTime value) | |
Creates attribute of given type with DateTime (CK_DATE) value More... | |
ObjectAttribute (CKA type, DateTime value) | |
Creates attribute of given type with DateTime (CK_DATE) value More... | |
DateTime | GetValueAsDateTime () |
Reads value of attribute and returns it as DateTime More... | |
ObjectAttribute (ulong type, List< IObjectAttribute > value) | |
Creates attribute of given type with attribute array value More... | |
ObjectAttribute (CKA type, List< IObjectAttribute > value) | |
Creates attribute of given type with attribute array value More... | |
List< IObjectAttribute > | GetValueAsObjectAttributeList () |
Reads value of attribute and returns it as attribute array More... | |
ObjectAttribute (ulong type, List< ulong > value) | |
Creates attribute of given type with ulong array value More... | |
ObjectAttribute (CKA type, List< ulong > value) | |
Creates attribute of given type with ulong array value More... | |
List< ulong > | GetValueAsULongList () |
Reads value of attribute and returns it as list of ulong More... | |
ObjectAttribute (ulong type, List< CKM > value) | |
Creates attribute of given type with mechanism array value More... | |
ObjectAttribute (CKA type, List< CKM > value) | |
Creates attribute of given type with mechanism array value More... | |
List< CKM > | GetValueAsCkmList () |
Reads value of attribute and returns it as list of mechanisms More... | |
void | Dispose () |
Disposes object More... | |
Protected Member Functions | |
CK_ATTRIBUTE | DuplicateAttribute (ref CK_ATTRIBUTE attribute) |
Creates copy of low level attribute More... | |
virtual void | Dispose (bool disposing) |
Disposes object More... | |
void | FreeAttribute (ref CK_ATTRIBUTE attribute) |
Frees low level attribute More... | |
Protected Attributes | |
bool | _disposed = false |
Flag indicating whether instance has been disposed More... | |
CK_ATTRIBUTE | _ckAttribute |
Low level attribute structure More... | |
Properties | |
ulong | Type [get] |
Attribute type More... | |
bool | CannotBeRead [get] |
Flag indicating whether attribute value cannot be read either because object is sensitive or unextractable or because specified attribute for the object is invalid. More... | |
Properties inherited from Net.Pkcs11Interop.HighLevelAPI.IObjectAttribute | |
ulong | Type [get] |
Attribute type More... | |
bool | CannotBeRead [get] |
Flag indicating whether attribute value cannot be read either because object is sensitive or unextractable or because specified attribute for the object is invalid. More... | |
Attribute of cryptoki object (CK_ATTRIBUTE alternative)
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | ulong | type | ) |
Creates attribute of given type with no value
type | Attribute type |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | CKA | type | ) |
Creates attribute of given type with no value
type | Attribute type |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | ulong | type, |
ulong | value | ||
) |
Creates attribute of given type with ulong value
type | Attribute type |
value | Attribute value |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | CKA | type, |
ulong | value | ||
) |
Creates attribute of given type with ulong value
type | Attribute type |
value | Attribute value |
Creates attribute of given type with CKC value
type | Attribute type |
value | Attribute value |
Creates attribute of given type with CKK value
type | Attribute type |
value | Attribute value |
Creates attribute of given type with CKO value
type | Attribute type |
value | Attribute value |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | ulong | type, |
bool | value | ||
) |
Creates attribute of given type with bool value
type | Attribute type |
value | Attribute value |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | CKA | type, |
bool | value | ||
) |
Creates attribute of given type with bool value
type | Attribute type |
value | Attribute value |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | ulong | type, |
string | value | ||
) |
Creates attribute of given type with string value
type | Attribute type |
value | Attribute value |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | CKA | type, |
string | value | ||
) |
Creates attribute of given type with string value
type | Attribute type |
value | Attribute value |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | ulong | type, |
byte [] | value | ||
) |
Creates attribute of given type with byte array value
type | Attribute type |
value | Attribute value |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | CKA | type, |
byte [] | value | ||
) |
Creates attribute of given type with byte array value
type | Attribute type |
value | Attribute value |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | ulong | type, |
DateTime | value | ||
) |
Creates attribute of given type with DateTime (CK_DATE) value
type | Attribute type |
value | Attribute value |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | CKA | type, |
DateTime | value | ||
) |
Creates attribute of given type with DateTime (CK_DATE) value
type | Attribute type |
value | Attribute value |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | ulong | type, |
List< IObjectAttribute > | value | ||
) |
Creates attribute of given type with attribute array value
type | Attribute type |
value | Attribute value |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | CKA | type, |
List< IObjectAttribute > | value | ||
) |
Creates attribute of given type with attribute array value
type | Attribute type |
value | Attribute value |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | ulong | type, |
List< ulong > | value | ||
) |
Creates attribute of given type with ulong array value
type | Attribute type |
value | Attribute value |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | CKA | type, |
List< ulong > | value | ||
) |
Creates attribute of given type with ulong array value
type | Attribute type |
value | Attribute value |
Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ObjectAttribute | ( | ulong | type, |
List< CKM > | value | ||
) |
Creates attribute of given type with mechanism array value
type | Attribute type |
value | Attribute value |
Creates attribute of given type with mechanism array value
type | Attribute type |
value | Attribute value |
void Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.Dispose | ( | ) |
Disposes object
|
protectedvirtual |
Disposes object
disposing | Flag indicating whether managed resources should be disposed |
|
protected |
Creates copy of low level attribute
attribute | Attribute to be copied |
|
protected |
Frees low level attribute
attribute | Attribute to be freed |
bool Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.GetValueAsBool | ( | ) |
Reads value of attribute and returns it as bool
Implements Net.Pkcs11Interop.HighLevelAPI.IObjectAttribute.
byte [] Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.GetValueAsByteArray | ( | ) |
Reads value of attribute and returns it as byte array
Implements Net.Pkcs11Interop.HighLevelAPI.IObjectAttribute.
List<CKM> Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.GetValueAsCkmList | ( | ) |
Reads value of attribute and returns it as list of mechanisms
Implements Net.Pkcs11Interop.HighLevelAPI.IObjectAttribute.
DateTime Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.GetValueAsDateTime | ( | ) |
Reads value of attribute and returns it as DateTime
Implements Net.Pkcs11Interop.HighLevelAPI.IObjectAttribute.
List<IObjectAttribute> Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.GetValueAsObjectAttributeList | ( | ) |
Reads value of attribute and returns it as attribute array
Implements Net.Pkcs11Interop.HighLevelAPI.IObjectAttribute.
string Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.GetValueAsString | ( | ) |
Reads value of attribute and returns it as string
Implements Net.Pkcs11Interop.HighLevelAPI.IObjectAttribute.
ulong Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.GetValueAsUlong | ( | ) |
Reads value of attribute and returns it as ulong
Implements Net.Pkcs11Interop.HighLevelAPI.IObjectAttribute.
List<ulong> Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.GetValueAsULongList | ( | ) |
Reads value of attribute and returns it as list of ulong
Implements Net.Pkcs11Interop.HighLevelAPI.IObjectAttribute.
object Net.Pkcs11Interop.HighLevelAPI41.ObjectAttribute.ToMarshalableStructure | ( | ) |
Returns managed object corresponding to CK_ATTRIBUTE structure that can be marshaled to an unmanaged block of memory
Implements Net.Pkcs11Interop.HighLevelAPI.IObjectAttribute.
|
protected |
Low level attribute structure
|
protected |
Flag indicating whether instance has been disposed
|
get |
Flag indicating whether attribute value cannot be read either because object is sensitive or unextractable or because specified attribute for the object is invalid.
|
get |
Attribute type