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
storeNameStoreNamestoreLocationStoreLocationcertNamestring
AESEncryption(X509Certificate2)
public AESEncryption(X509Certificate2 cert)
Parameters
certX509Certificate2
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
encryptedAttachementbyte[]
Returns
- byte[]
Encode(byte[])
public byte[] Encode(byte[] attachement)
Parameters
attachementbyte[]
Returns
- byte[]
GetCertificateFromStoreByThumbprint(StoreName, StoreLocation, string)
public static X509Certificate2 GetCertificateFromStoreByThumbprint(StoreName storeName, StoreLocation storeLocation, string thumbprint)
Parameters
storeNameStoreNamestoreLocationStoreLocationthumbprintstring
Returns
StoreLocationFromString(string)
public static StoreLocation StoreLocationFromString(string name)
Parameters
namestring
Returns
StoreNameFromString(string)
public static StoreName StoreNameFromString(string name)
Parameters
namestring