Show / Hide Table of Contents

Class PkiUtil

Inheritance
Object
PkiUtil
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Lacuna.Pki
Assembly: Lacuna.Pki.dll
Syntax
public static class PkiUtil

Properties

LastLogException

Declaration
public static Exception LastLogException { get; set; }
Property Value
Type Description
Exception

OfflineSignerConfigurator

Validation configuration preset for offline signers. Use on methods SetCertificateValidationConfigurator

Declaration
public static Action<CertificateValidationOptions> OfflineSignerConfigurator { get; }
Property Value
Type Description
Action<CertificateValidationOptions>

Methods

Compress(Byte[])

Declaration
public static byte[] Compress(byte[] data)
Parameters
Type Name Description
Byte[] data
Returns
Type Description
Byte[]

DecodeDerInteger(Byte[])

Declaration
public static BigInteger DecodeDerInteger(byte[] encoded)
Parameters
Type Name Description
Byte[] encoded
Returns
Type Description
BigInteger

DecodeHexString(String)

Declaration
public static byte[] DecodeHexString(string hexString)
Parameters
Type Name Description
String hexString
Returns
Type Description
Byte[]

Decompress(Byte[])

Declaration
public static byte[] Decompress(byte[] data)
Parameters
Type Name Description
Byte[] data
Returns
Type Description
Byte[]

EncodePem(PemObjects, Byte[])

Declaration
public static string EncodePem(PemObjects objectType, byte[] content)
Parameters
Type Name Description
PemObjects objectType
Byte[] content
Returns
Type Description
String

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
Type Description
String

FlushLog()

Declaration
public static void FlushLog()

SetGlobalTimestampRequester(ITimestampRequester)

Declaration
public static void SetGlobalTimestampRequester(ITimestampRequester tsRequester)
Parameters
Type Name Description
ITimestampRequester tsRequester

SetGlobalUserCertificateStore(ICertificateStore)

Declaration
public static void SetGlobalUserCertificateStore(ICertificateStore userCertificateStore)
Parameters
Type Name Description
ICertificateStore userCertificateStore

SetGlobalUserCertificateStore(IUserCertificateStore)

Declaration
public static void SetGlobalUserCertificateStore(IUserCertificateStore userCertificateStore)
Parameters
Type Name Description
IUserCertificateStore userCertificateStore
Back to top Copyright © 2015-2020 Lacuna Software