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

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

Inherits IDisposable.

Public Member Functions

 ObjectAttribute (uint type)
 Creates attribute of given type with no value More...
 
 ObjectAttribute (CKA type)
 Creates attribute of given type with no value More...
 
 ObjectAttribute (uint type, uint value)
 Creates attribute of given type with uint value More...
 
 ObjectAttribute (CKA type, uint value)
 Creates attribute of given type with uint 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...
 
uint GetValueAsUint ()
 Reads value of attribute and returns it as uint More...
 
 ObjectAttribute (uint 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 (uint 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 (uint 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 (uint 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 (uint 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 (uint type, List< uint > value)
 Creates attribute of given type with uint array value More...
 
 ObjectAttribute (CKA type, List< uint > value)
 Creates attribute of given type with uint array value More...
 
List< uint > GetValueAsUintList ()
 Reads value of attribute and returns it as list of uints More...
 
 ObjectAttribute (uint 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

uint 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.HighLevelAPI40.ObjectAttribute.ObjectAttribute ( uint  type)

Creates attribute of given type with no value

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

Creates attribute of given type with no value

Parameters
typeAttribute type
Net.Pkcs11Interop.HighLevelAPI40.ObjectAttribute.ObjectAttribute ( uint  type,
uint  value 
)

Creates attribute of given type with uint value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI40.ObjectAttribute.ObjectAttribute ( CKA  type,
uint  value 
)

Creates attribute of given type with uint value

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

Creates attribute of given type with CKC value

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

Creates attribute of given type with CKK value

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

Creates attribute of given type with CKO value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI40.ObjectAttribute.ObjectAttribute ( uint  type,
bool  value 
)

Creates attribute of given type with bool value

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

Creates attribute of given type with bool value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI40.ObjectAttribute.ObjectAttribute ( uint  type,
string  value 
)

Creates attribute of given type with string value

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

Creates attribute of given type with string value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI40.ObjectAttribute.ObjectAttribute ( uint  type,
byte[]  value 
)

Creates attribute of given type with byte array value

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

Creates attribute of given type with byte array value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI40.ObjectAttribute.ObjectAttribute ( uint  type,
DateTime  value 
)

Creates attribute of given type with DateTime (CK_DATE) value

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

Creates attribute of given type with DateTime (CK_DATE) value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI40.ObjectAttribute.ObjectAttribute ( uint  type,
List< ObjectAttribute value 
)

Creates attribute of given type with attribute array value

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

Creates attribute of given type with attribute array value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI40.ObjectAttribute.ObjectAttribute ( uint  type,
List< uint >  value 
)

Creates attribute of given type with uint array value

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

Creates attribute of given type with uint array value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI40.ObjectAttribute.ObjectAttribute ( uint  type,
List< CKM value 
)

Creates attribute of given type with mechanism array value

Parameters
typeAttribute type
valueAttribute value
Net.Pkcs11Interop.HighLevelAPI40.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.HighLevelAPI40.ObjectAttribute.Dispose ( )

Disposes object

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

Disposes object

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

Reads value of attribute and returns it as bool

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

Reads value of attribute and returns it as byte array

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

Reads value of attribute and returns it as list of mechanisms

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

Reads value of attribute and returns it as DateTime

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

Reads value of attribute and returns it as attribute array

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

Reads value of attribute and returns it as string

Returns
Value of attribute
uint Net.Pkcs11Interop.HighLevelAPI40.ObjectAttribute.GetValueAsUint ( )

Reads value of attribute and returns it as uint

Returns
Value of attribute
List<uint> Net.Pkcs11Interop.HighLevelAPI40.ObjectAttribute.GetValueAsUintList ( )

Reads value of attribute and returns it as list of uints

Returns
Value of attribute

Property Documentation

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

uint Net.Pkcs11Interop.HighLevelAPI40.ObjectAttribute.Type
get

Attribute type


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