C# Class Net.Pkcs11Interop.Common.Pkcs11Uri

PKCS#11 URI parser
Show file Open project: Pkcs11Interop/Pkcs11Interop Class Usage Examples

Public Methods

Method Description
Pkcs11Uri ( string uri ) : System

Intializes new instance of Pkcs11Uri class that parses provided PKCS#11 URI and checks max lengths of path attribute values

Pkcs11Uri ( string uri, bool checkLengths ) : System

Intializes new instance of Pkcs11Uri class that parses provided PKCS#11 URI

Private Methods

Method Description
DecodePk11String ( string attributeName, string pk11String, char allowedChars, bool decodePctEncodedChars ) : byte[]

Checks whether Pk11String contains invalid characters and optionaly decodes percent encoded characters

Extract ( string text ) : string

Extracts PKCS#11 URI from text and removes all whitespaces

IsHexDigit ( char c ) : bool

Checks whether character is hex digit

Parse ( string uri ) : void

Parses PKCS#11 URI

ParsePathAttribute ( string attribute ) : void

Parses path attribute

ParseQueryAttribute ( string attribute ) : void

Parses query attribute

Method Details

Pkcs11Uri() public method

Intializes new instance of Pkcs11Uri class that parses provided PKCS#11 URI and checks max lengths of path attribute values
public Pkcs11Uri ( string uri ) : System
uri string PKCS#11 URI to be parsed
return System

Pkcs11Uri() public method

Intializes new instance of Pkcs11Uri class that parses provided PKCS#11 URI
public Pkcs11Uri ( string uri, bool checkLengths ) : System
uri string PKCS#11 URI to be parsed
checkLengths bool Flag indicating whether max lengths of path attribute values should be checked
return System