Class PrivateKey
Assembly: Lacuna.Pki.dll
Syntax
public abstract class PrivateKey : IPrivateKey
Properties
|
Improve this Doc
View Source
Algorithm
Declaration
public abstract PKAlgorithm Algorithm { get; }
Property Value
Methods
|
Improve this Doc
View Source
Decode(Byte[])
Decodes private key from ASN1 DER content or PEM file content
Declaration
public static PrivateKey Decode(byte[] content)
Parameters
| Type |
Name |
Description |
| Byte[] |
content |
|
Returns
|
Improve this Doc
View Source
Decode(Byte[], String)
Decodes encrypted private key from ASN1 DER content or PEM file content
Declaration
public static PrivateKey Decode(byte[] content, string password)
Parameters
| Type |
Name |
Description |
| Byte[] |
content |
|
| String |
password |
|
Returns
|
Improve this Doc
View Source
Decode(String)
Decodes private key from PEM string or ASN1 DER base64 string
Declaration
public static PrivateKey Decode(string pem)
Parameters
| Type |
Name |
Description |
| String |
pem |
|
Returns
|
Improve this Doc
View Source
Decode(String, String)
Decodes encrypted private key from PEM string or ASN1 DER base64 string
Declaration
public static PrivateKey Decode(string pem, string password)
Parameters
Returns
|
Improve this Doc
View Source
Export()
Returns the DER-encoded (unencrypted) private key (PKCS #8)
Declaration
Returns
|
Improve this Doc
View Source
ExportPem()
Returns the PEM-encoded (unencrypted) private key (PKCS #8)
Declaration
public string ExportPem()
Returns
|
Improve this Doc
View Source
GetEncryptionCsp()
Declaration
public abstract IEncryptionCsp GetEncryptionCsp()
Returns
Implements
|
Improve this Doc
View Source
GetInstance(AsymmetricAlgorithm)
Declaration
public static PrivateKey GetInstance(AsymmetricAlgorithm underlyingPrivateKey)
Parameters
Returns
|
Improve this Doc
View Source
GetInstance(X509Certificate2)
Declaration
public static IPrivateKey GetInstance(X509Certificate2 x509Certificate)
Parameters
Returns
|
Improve this Doc
View Source
GetSignatureCsp(DigestAlgorithm)
Declaration
public abstract ISignatureCsp GetSignatureCsp(DigestAlgorithm digestAlgorithm)
Parameters
Returns
Implements