Pkcs11Interop
5.1.2
|
PKCS#11 URI builder More...
Public Member Functions | |
Pkcs11UriBuilder () | |
Intializes new instance of Pkcs11UriBuilder class that checks max lengths of path attribute values More... | |
Pkcs11UriBuilder (bool checkLengths) | |
Intializes new instance of Pkcs11UriBuilder class More... | |
Pkcs11UriBuilder (Pkcs11Uri pkcs11Uri) | |
Intializes new instance of Pkcs11UriBuilder class with specified PKCS#11 URI whose ChecksLengths property specifies whether max lengths of path attribute values should be checked More... | |
Pkcs11UriBuilder (Pkcs11Uri pkcs11Uri, bool checkLengths) | |
Intializes new instance of Pkcs11UriBuilder class with specified PKCS#11 URI More... | |
override string | ToString () |
Generates PKCS#11 URI representing contents of Pkcs11UriBuilder instance More... | |
Pkcs11Uri | ToPkcs11Uri () |
Converts Pkcs11UriBuilder instance to Pkcs11Uri instance More... | |
Properties | |
bool | ChecksLengths [get] |
Flag indicating whether max lengths of path attribute values are checked More... | |
string | Token [get, set] |
Value of path attribute "token" that corresponds to the "label" member of the CK_TOKEN_INFO structure More... | |
string | Manufacturer [get, set] |
Value of path attribute "manufacturer" that corresponds to the "manufacturerID" member of CK_TOKEN_INFO structure More... | |
string | Serial [get, set] |
Value of path attribute "serial" that corresponds to the "serialNumber" member of CK_TOKEN_INFO structure More... | |
string | Model [get, set] |
Value of path attribute "model" that corresponds to the "model" member of CK_TOKEN_INFO structure More... | |
string | LibraryManufacturer [get, set] |
Value of path attribute "library-manufacturer" that corresponds to the "manufacturerID" member of CK_INFO structure More... | |
string | LibraryDescription [get, set] |
Value of path attribute "library-description" that corresponds to the "libraryDescription" member of CK_INFO structure More... | |
string | LibraryVersion [get, set] |
Value of path attribute "library-version" that corresponds to the "libraryVersion" member of CK_INFO structure More... | |
string | Object [get, set] |
Value of path attribute "object" that corresponds to the "CKA_LABEL" object attribute More... | |
CKO | Type [get, set] |
Value of path attribute "type" that corresponds to the "CKA_CLASS" object attribute More... | |
byte [] | Id [get, set] |
Value of path attribute "id" that corresponds to the "CKA_ID" object attribute More... | |
string | SlotManufacturer [get, set] |
Value of path attribute "slot-manufacturer" that corresponds to the "manufacturerID" member of CK_SLOT_INFO structure More... | |
string | SlotDescription [get, set] |
Value of path attribute "slot-description" that corresponds to the "slotDescription" member of CK_SLOT_INFO structure More... | |
ulong | SlotId [get, set] |
Value of path attribute "slot-id" that corresponds to the decimal number of "CK_SLOT_ID" type More... | |
Dictionary< string, string > | UnknownPathAttributes [get, set] |
Collection of unknown vendor specific path attributes that is validated when ToString() or ToPkcs11Uri() method is called More... | |
string | PinSource [get, set] |
Value of query attribute "pin-source" that specifies where token PIN can be obtained More... | |
string | PinValue [get, set] |
Value of query attribute "pin-value" that contains token PIN More... | |
string | ModuleName [get, set] |
Value of query attribute "module-name" that specifies name of the PKCS#11 library More... | |
string | ModulePath [get, set] |
Value of query attribute "module-path" that specifies path to the PKCS#11 library More... | |
Dictionary< string, List< string > > | UnknownQueryAttributes [get, set] |
Collection of unknown vendor specific query attributes that is validated when ToString() or ToPkcs11Uri() method is called More... | |
PKCS#11 URI builder
Implementation note: As recommended by PKCS#11 URI specification Pkcs11UriBuilder class percent-encodes the whole value of the "id" attribute which is supposed to be handled as arbitrary binary data. Therefore it is not possible to construct URIs with arbitrary string value of the "id" attribute.
Implementation note: Validation of each individual attribute value is performed by the setter of corresponding Pkcs11UriBuilder class property with the exception to UnknownPathAttributes and UnknownQueryAttributes properties whose values are validated when ToString() or ToPkcs11Uri() method is called.
Net.Pkcs11Interop.Common.Pkcs11UriBuilder.Pkcs11UriBuilder | ( | ) |
Intializes new instance of Pkcs11UriBuilder class that checks max lengths of path attribute values
Net.Pkcs11Interop.Common.Pkcs11UriBuilder.Pkcs11UriBuilder | ( | bool | checkLengths | ) |
Intializes new instance of Pkcs11UriBuilder class
checkLengths | Flag indicating whether max lengths of path attribute values should be checked |
Net.Pkcs11Interop.Common.Pkcs11UriBuilder.Pkcs11UriBuilder | ( | Pkcs11Uri | pkcs11Uri | ) |
Intializes new instance of Pkcs11UriBuilder class with specified PKCS#11 URI whose ChecksLengths property specifies whether max lengths of path attribute values should be checked
pkcs11Uri | PKCS#11 URI with default values |
Net.Pkcs11Interop.Common.Pkcs11UriBuilder.Pkcs11UriBuilder | ( | Pkcs11Uri | pkcs11Uri, |
bool | checkLengths | ||
) |
Intializes new instance of Pkcs11UriBuilder class with specified PKCS#11 URI
pkcs11Uri | PKCS#11 URI with default values |
checkLengths | Flag indicating whether max lengths of path attribute values should be checked |
Pkcs11Uri Net.Pkcs11Interop.Common.Pkcs11UriBuilder.ToPkcs11Uri | ( | ) |
Converts Pkcs11UriBuilder instance to Pkcs11Uri instance
override string Net.Pkcs11Interop.Common.Pkcs11UriBuilder.ToString | ( | ) |
Generates PKCS#11 URI representing contents of Pkcs11UriBuilder instance
|
get |
Flag indicating whether max lengths of path attribute values are checked
|
getset |
Value of path attribute "id" that corresponds to the "CKA_ID" object attribute
|
getset |
Value of path attribute "library-description" that corresponds to the "libraryDescription" member of CK_INFO structure
|
getset |
Value of path attribute "library-manufacturer" that corresponds to the "manufacturerID" member of CK_INFO structure
|
getset |
Value of path attribute "library-version" that corresponds to the "libraryVersion" member of CK_INFO structure
|
getset |
Value of path attribute "manufacturer" that corresponds to the "manufacturerID" member of CK_TOKEN_INFO structure
|
getset |
Value of path attribute "model" that corresponds to the "model" member of CK_TOKEN_INFO structure
|
getset |
Value of query attribute "module-name" that specifies name of the PKCS#11 library
|
getset |
Value of query attribute "module-path" that specifies path to the PKCS#11 library
|
getset |
Value of path attribute "object" that corresponds to the "CKA_LABEL" object attribute
|
getset |
Value of query attribute "pin-source" that specifies where token PIN can be obtained
|
getset |
Value of query attribute "pin-value" that contains token PIN
|
getset |
Value of path attribute "serial" that corresponds to the "serialNumber" member of CK_TOKEN_INFO structure
|
getset |
Value of path attribute "slot-description" that corresponds to the "slotDescription" member of CK_SLOT_INFO structure
|
getset |
Value of path attribute "slot-id" that corresponds to the decimal number of "CK_SLOT_ID" type
|
getset |
Value of path attribute "slot-manufacturer" that corresponds to the "manufacturerID" member of CK_SLOT_INFO structure
|
getset |
Value of path attribute "token" that corresponds to the "label" member of the CK_TOKEN_INFO structure
|
getset |
Value of path attribute "type" that corresponds to the "CKA_CLASS" object attribute
|
getset |
Collection of unknown vendor specific path attributes that is validated when ToString() or ToPkcs11Uri() method is called
|
getset |
Collection of unknown vendor specific query attributes that is validated when ToString() or ToPkcs11Uri() method is called