Show / Hide Table of Contents

Class X509AsymmetricEncrypter

Inheritance
System.Object
Encrypter
X509AsymmetricEncrypter
Inherited Members
Encrypter._logger
Namespace: BO4E.Extensions.Encryption
Assembly: BO4E-dotnet.Extensions.Encryption.dll
Syntax
public class X509AsymmetricEncrypter : Encrypter

Constructors

| Improve this Doc View Source

X509AsymmetricEncrypter(AsymmetricKeyParameter)

Provide the constructor with an AsymmetricKeyParameter to use as decrypter.

Declaration
public X509AsymmetricEncrypter(AsymmetricKeyParameter kp)
Parameters
Type Name Description
AsymmetricKeyParameter kp

AsymmetricKeyParamer, must contain the RSA private key.

| Improve this Doc View Source

X509AsymmetricEncrypter(ISet<X509Certificate2>)

Provide the constructor a set of X509 certificates to use for encryption

Declaration
public X509AsymmetricEncrypter(ISet<X509Certificate2> certs)
Parameters
Type Name Description
ISet<X509Certificate2> certs

Collection of certificates

| Improve this Doc View Source

X509AsymmetricEncrypter(X509Certificate2)

Provide the constructor with an X509 certificate to use as encrypter.

Declaration
public X509AsymmetricEncrypter(X509Certificate2 cert)
Parameters
Type Name Description
X509Certificate2 cert

X509 certificate must contain the public key.

Methods

| Improve this Doc View Source

Decrypt(EncryptedObject)

Declaration
public override BusinessObject Decrypt(EncryptedObject encryptedObject)
Parameters
Type Name Description
EncryptedObject encryptedObject
Returns
Type Description
BusinessObject
Overrides
Encrypter.Decrypt(EncryptedObject)
| Improve this Doc View Source

Decrypt(String)

Declaration
public string Decrypt(string cipherText)
Parameters
Type Name Description
System.String cipherText
Returns
Type Description
System.String
| Improve this Doc View Source

Decrypt<T>(EncryptedObject)

Declaration
public override T Decrypt<T>(EncryptedObject encryptedObject)
    where T : BusinessObject
Parameters
Type Name Description
EncryptedObject encryptedObject
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides
Encrypter.Decrypt<T>(EncryptedObject)
| Improve this Doc View Source

Dispose()

Declaration
public override void Dispose()
Overrides
Encrypter.Dispose()
| Improve this Doc View Source

Encrypt(BusinessObject)

Declaration
public EncryptedObject Encrypt(BusinessObject plainObject)
Parameters
Type Name Description
BusinessObject plainObject
Returns
Type Description
EncryptedObject
| Improve this Doc View Source

Encrypt(String)

Declaration
public string Encrypt(string plainText)
Parameters
Type Name Description
System.String plainText
Returns
Type Description
System.String
| Improve this Doc View Source

Finalize()

Declaration
protected void Finalize()
| Improve this Doc View Source

PrivateBase64KeyToACKP(String)

Declaration
public static AsymmetricCipherKeyPair PrivateBase64KeyToACKP(string pemKeyBase64)
Parameters
Type Name Description
System.String pemKeyBase64
Returns
Type Description
AsymmetricCipherKeyPair

Extension Methods

BusinessObjectExtensions.DeepClone<T>(T)
COMExtensions.DeepClone<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX