Class PkiUtil
Assembly: Lacuna.Pki.dll
Syntax
public static class PkiUtil
Properties
LastLogException
Declaration
public static Exception LastLogException { get; set; }
Property Value
OfflineSignerConfigurator
Validation configuration preset for offline signers. Use on methods SetCertificateValidationConfigurator
Declaration
public static Action<CertificateValidationOptions> OfflineSignerConfigurator { get; }
Property Value
Methods
Compress(Byte[])
Declaration
public static byte[] Compress(byte[] data)
Parameters
Type |
Name |
Description |
Byte[] |
data |
|
Returns
DecodeDerInteger(Byte[])
Declaration
public static BigInteger DecodeDerInteger(byte[] encoded)
Parameters
Type |
Name |
Description |
Byte[] |
encoded |
|
Returns
DecodeHexString(String)
Declaration
public static byte[] DecodeHexString(string hexString)
Parameters
Type |
Name |
Description |
String |
hexString |
|
Returns
Decompress(Byte[])
Declaration
public static byte[] Decompress(byte[] data)
Parameters
Type |
Name |
Description |
Byte[] |
data |
|
Returns
EncodePem(PemObjects, Byte[])
Declaration
public static string EncodePem(PemObjects objectType, byte[] content)
Parameters
Returns
EncodeToHexString(Byte[], String, Boolean)
Encodes a byte array to hex string
Declaration
public static string EncodeToHexString(byte[] content, string separator = "", bool upperCase = false)
Parameters
Type |
Name |
Description |
Byte[] |
content |
Content to encode
|
String |
separator |
Separator string between hex bytes. Default: no separator
|
Boolean |
upperCase |
True for encoding an upper case hex string, False for lower case hex string. Default: lower case
|
Returns
FlushLog()
Declaration
public static void FlushLog()
SetGlobalTimestampRequester(ITimestampRequester)
Declaration
public static void SetGlobalTimestampRequester(ITimestampRequester tsRequester)
Parameters
SetGlobalUserCertificateStore(ICertificateStore)
Declaration
public static void SetGlobalUserCertificateStore(ICertificateStore userCertificateStore)
Parameters
SetGlobalUserCertificateStore(IUserCertificateStore)
Declaration
public static void SetGlobalUserCertificateStore(IUserCertificateStore userCertificateStore)
Parameters