C# Класс Net.Pkcs11Interop.Common.Pkcs11Uri

PKCS#11 URI parser
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Pkcs11Uri() публичный Метод

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
Результат System

Pkcs11Uri() публичный Метод

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
Результат System