C# Class Net.Pkcs11Interop.HighLevelAPI81.ObjectAttribute

Attribute of cryptoki object (CK_ATTRIBUTE alternative)
Inheritance: IDisposable
Mostra file Open project: Pkcs11Interop/Pkcs11Interop Class Usage Examples

Private Properties

Property Type Description
ObjectAttribute System

Public Methods

Method Description
Dispose ( ) : void

Disposes object

GetValueAsBool ( ) : bool

Reads value of attribute and returns it as bool

GetValueAsByteArray ( ) : byte[]

Reads value of attribute and returns it as byte array

GetValueAsCkmList ( ) : List

Reads value of attribute and returns it as list of mechanisms

GetValueAsDateTime ( ) : DateTime?

Reads value of attribute and returns it as DateTime

GetValueAsObjectAttributeList ( ) : List

Reads value of attribute and returns it as attribute array (CURRENTLY NOT IMPLEMENTED)

GetValueAsString ( ) : string

Reads value of attribute and returns it as string

GetValueAsUlong ( ) : ulong

Reads value of attribute and returns it as ulong

GetValueAsUlongList ( ) : List

Reads value of attribute and returns it as list of ulongs

ObjectAttribute ( CKA type ) : System

Creates attribute of given type with no value

ObjectAttribute ( CKA type, CKC value ) : System

Creates attribute of given type with CKC value

ObjectAttribute ( CKA type, CKK value ) : System

Creates attribute of given type with CKK value

ObjectAttribute ( CKA type, CKO value ) : System

Creates attribute of given type with CKO value

ObjectAttribute ( CKA type, System.DateTime value ) : System

Creates attribute of given type with DateTime (CK_DATE) value

ObjectAttribute ( CKA type, List value ) : System

Creates attribute of given type with mechanism array value

ObjectAttribute ( CKA type, List value ) : System

Creates attribute of given type with attribute array value

ObjectAttribute ( CKA type, List value ) : System

Creates attribute of given type with ulong array value

ObjectAttribute ( CKA type, bool value ) : System

Creates attribute of given type with bool value

ObjectAttribute ( CKA type, byte value ) : System

Creates attribute of given type with byte array value

ObjectAttribute ( CKA type, string value ) : System

Creates attribute of given type with string value

ObjectAttribute ( CKA type, ulong value ) : System

Creates attribute of given type with ulong value

ObjectAttribute ( ulong type ) : System

Creates attribute of given type with no value

ObjectAttribute ( ulong type, System.DateTime value ) : System

Creates attribute of given type with DateTime (CK_DATE) value

ObjectAttribute ( ulong type, List value ) : System

Creates attribute of given type with mechanism array value

ObjectAttribute ( ulong type, List value ) : System

Creates attribute of given type with attribute array value

ObjectAttribute ( ulong type, List value ) : System

Creates attribute of given type with ulong array value

ObjectAttribute ( ulong type, bool value ) : System

Creates attribute of given type with bool value

ObjectAttribute ( ulong type, byte value ) : System

Creates attribute of given type with byte array value

ObjectAttribute ( ulong type, string value ) : System

Creates attribute of given type with string value

ObjectAttribute ( ulong type, ulong value ) : System

Creates attribute of given type with ulong value

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes object

Private Methods

Method Description
ObjectAttribute ( CK_ATTRIBUTE attribute ) : System

Creates attribute defined by low level CK_ATTRIBUTE structure

Method Details

Dispose() public method

Disposes object
public Dispose ( ) : void
return void

Dispose() protected method

Disposes object
protected Dispose ( bool disposing ) : void
disposing bool Flag indicating whether managed resources should be disposed
return void

GetValueAsBool() public method

Reads value of attribute and returns it as bool
public GetValueAsBool ( ) : bool
return bool

GetValueAsByteArray() public method

Reads value of attribute and returns it as byte array
public GetValueAsByteArray ( ) : byte[]
return byte[]

GetValueAsCkmList() public method

Reads value of attribute and returns it as list of mechanisms
public GetValueAsCkmList ( ) : List
return List

GetValueAsDateTime() public method

Reads value of attribute and returns it as DateTime
public GetValueAsDateTime ( ) : DateTime?
return DateTime?

GetValueAsObjectAttributeList() public method

Reads value of attribute and returns it as attribute array (CURRENTLY NOT IMPLEMENTED)
public GetValueAsObjectAttributeList ( ) : List
return List

GetValueAsString() public method

Reads value of attribute and returns it as string
public GetValueAsString ( ) : string
return string

GetValueAsUlong() public method

Reads value of attribute and returns it as ulong
public GetValueAsUlong ( ) : ulong
return ulong

GetValueAsUlongList() public method

Reads value of attribute and returns it as list of ulongs
public GetValueAsUlongList ( ) : List
return List

ObjectAttribute() public method

Creates attribute of given type with no value
public ObjectAttribute ( CKA type ) : System
type CKA Attribute type
return System

ObjectAttribute() public method

Creates attribute of given type with CKC value
public ObjectAttribute ( CKA type, CKC value ) : System
type CKA Attribute type
value CKC Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with CKK value
public ObjectAttribute ( CKA type, CKK value ) : System
type CKA Attribute type
value CKK Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with CKO value
public ObjectAttribute ( CKA type, CKO value ) : System
type CKA Attribute type
value CKO Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with DateTime (CK_DATE) value
public ObjectAttribute ( CKA type, System.DateTime value ) : System
type CKA Attribute type
value System.DateTime Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with mechanism array value
public ObjectAttribute ( CKA type, List value ) : System
type CKA Attribute type
value List Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with attribute array value
public ObjectAttribute ( CKA type, List value ) : System
type CKA Attribute type
value List Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with ulong array value
public ObjectAttribute ( CKA type, List value ) : System
type CKA Attribute type
value List Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with bool value
public ObjectAttribute ( CKA type, bool value ) : System
type CKA Attribute type
value bool Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with byte array value
public ObjectAttribute ( CKA type, byte value ) : System
type CKA Attribute type
value byte Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with string value
public ObjectAttribute ( CKA type, string value ) : System
type CKA Attribute type
value string Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with ulong value
public ObjectAttribute ( CKA type, ulong value ) : System
type CKA Attribute type
value ulong Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with no value
public ObjectAttribute ( ulong type ) : System
type ulong Attribute type
return System

ObjectAttribute() public method

Creates attribute of given type with DateTime (CK_DATE) value
public ObjectAttribute ( ulong type, System.DateTime value ) : System
type ulong Attribute type
value System.DateTime Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with mechanism array value
public ObjectAttribute ( ulong type, List value ) : System
type ulong Attribute type
value List Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with attribute array value
public ObjectAttribute ( ulong type, List value ) : System
type ulong Attribute type
value List Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with ulong array value
public ObjectAttribute ( ulong type, List value ) : System
type ulong Attribute type
value List Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with bool value
public ObjectAttribute ( ulong type, bool value ) : System
type ulong Attribute type
value bool Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with byte array value
public ObjectAttribute ( ulong type, byte value ) : System
type ulong Attribute type
value byte Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with string value
public ObjectAttribute ( ulong type, string value ) : System
type ulong Attribute type
value string Attribute value
return System

ObjectAttribute() public method

Creates attribute of given type with ulong value
public ObjectAttribute ( ulong type, ulong value ) : System
type ulong Attribute type
value ulong Attribute value
return System