Class AESEncryption
- Namespace
- SWConfigDataSharedLib.Security
- Assembly
- IpPbxCDSSharedLib.dll
TODO: Update summary.
public class AESEncryption
- Inheritance
-
AESEncryption
Constructors
AESEncryption(StoreName, StoreLocation, string)
public AESEncryption(StoreName storeName, StoreLocation storeLocation, string certName)
Parameters
storeName
StoreNamestoreLocation
StoreLocationcertName
string
AESEncryption(X509Certificate2)
public AESEncryption(X509Certificate2 cert)
Parameters
cert
X509Certificate2
AESEncryption(string, string, string)
public AESEncryption(string storeName, string storeLocation, string certName)
Parameters
Properties
EncryptionConfigured
public bool EncryptionConfigured { get; }
Property Value
ValidForDecryption
public bool ValidForDecryption { get; }
Property Value
ValidForEncryption
public bool ValidForEncryption { get; }
Property Value
Methods
Decode(byte[])
public byte[] Decode(byte[] encryptedAttachement)
Parameters
encryptedAttachement
byte[]
Returns
- byte[]
Encode(byte[])
public byte[] Encode(byte[] attachement)
Parameters
attachement
byte[]
Returns
- byte[]
GetCertificateFromStoreByThumbprint(StoreName, StoreLocation, string)
public static X509Certificate2 GetCertificateFromStoreByThumbprint(StoreName storeName, StoreLocation storeLocation, string thumbprint)
Parameters
storeName
StoreNamestoreLocation
StoreLocationthumbprint
string
Returns
StoreLocationFromString(string)
public static StoreLocation StoreLocationFromString(string name)
Parameters
name
string
Returns
StoreNameFromString(string)
public static StoreName StoreNameFromString(string name)
Parameters
name
string