Pkcs11Interop  4.0.0
Public Member Functions | Protected Member Functions | Properties | List of all members
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute Class Reference

Attribute of cryptoki object (CK_ATTRIBUTE alternative) More...

Inherits IDisposable.

Public Member Functions

 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< ObjectAttribute > value)
 Creates attribute of given type with attribute array value More...
 
 ObjectAttribute (CKA type, List< ObjectAttribute > value)
 Creates attribute of given type with attribute array value More...
 
List< ObjectAttributeGetValueAsObjectAttributeList ()
 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 ulongs 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< CKMGetValueAsCkmList ()
 Reads value of attribute and returns it as list of mechanisms More...
 
void Dispose ()
 Disposes object More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 Disposes object 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...
 

Detailed Description

Attribute of cryptoki object (CK_ATTRIBUTE alternative)

Constructor & Destructor Documentation

Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( ulong  type)

Creates attribute of given type with no value

Parameters
typeAttribute type
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( CKA  type)

Creates attribute of given type with no value

Parameters
typeAttribute type
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( ulong  type,
ulong  value 
)

Creates attribute of given type with ulong value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( CKA  type,
ulong  value 
)

Creates attribute of given type with ulong value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( CKA  type,
CKC  value 
)

Creates attribute of given type with CKC value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( CKA  type,
CKK  value 
)

Creates attribute of given type with CKK value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( CKA  type,
CKO  value 
)

Creates attribute of given type with CKO value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( ulong  type,
bool  value 
)

Creates attribute of given type with bool value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( CKA  type,
bool  value 
)

Creates attribute of given type with bool value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( ulong  type,
string  value 
)

Creates attribute of given type with string value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( CKA  type,
string  value 
)

Creates attribute of given type with string value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( ulong  type,
byte[]  value 
)

Creates attribute of given type with byte array value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( CKA  type,
byte[]  value 
)

Creates attribute of given type with byte array value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( ulong  type,
DateTime  value 
)

Creates attribute of given type with DateTime (CK_DATE) value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( CKA  type,
DateTime  value 
)

Creates attribute of given type with DateTime (CK_DATE) value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( ulong  type,
List< ObjectAttribute value 
)

Creates attribute of given type with attribute array value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( CKA  type,
List< ObjectAttribute value 
)

Creates attribute of given type with attribute array value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( ulong  type,
List< ulong >  value 
)

Creates attribute of given type with ulong array value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( CKA  type,
List< ulong >  value 
)

Creates attribute of given type with ulong array value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( ulong  type,
List< CKM value 
)

Creates attribute of given type with mechanism array value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.ObjectAttribute ( CKA  type,
List< CKM value 
)

Creates attribute of given type with mechanism array value

Parameters
typeAttribute type
valueAttribute value

Member Function Documentation

void Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.Dispose ( )

Disposes object

virtual void Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.Dispose ( bool  disposing)
protectedvirtual

Disposes object

Parameters
disposingFlag indicating whether managed resources should be disposed
bool Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.GetValueAsBool ( )

Reads value of attribute and returns it as bool

Returns
Value of attribute
byte [] Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.GetValueAsByteArray ( )

Reads value of attribute and returns it as byte array

Returns
Value of attribute
List<CKM> Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.GetValueAsCkmList ( )

Reads value of attribute and returns it as list of mechanisms

Returns
Value of attribute
DateTime Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.GetValueAsDateTime ( )

Reads value of attribute and returns it as DateTime

Returns
Value of attribute
List<ObjectAttribute> Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.GetValueAsObjectAttributeList ( )

Reads value of attribute and returns it as attribute array

Returns
Value of attribute
string Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.GetValueAsString ( )

Reads value of attribute and returns it as string

Returns
Value of attribute
ulong Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.GetValueAsUlong ( )

Reads value of attribute and returns it as ulong

Returns
Value of attribute
List<ulong> Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.GetValueAsUlongList ( )

Reads value of attribute and returns it as list of ulongs

Returns
Value of attribute

Property Documentation

bool Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.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.

ulong Net.Pkcs11Interop.HighLevelAPI.ObjectAttribute.Type
get

Attribute type


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