refactor(RSADecryptor): Umbenennung der Eigenschaft Encrypt in IsEncrypted
This commit is contained in:
@@ -36,7 +36,7 @@ namespace DigitalData.Core.Security.Config
|
||||
if (decryptor.IsPemNull)
|
||||
{
|
||||
var file_name_params = new List<object> { decryptor.Issuer, decryptor.Audience };
|
||||
if (decryptor.Encrypt)
|
||||
if (decryptor.IsEncrypted)
|
||||
file_name_params.Add(Secrets.Version);
|
||||
|
||||
var path = Path.Combine(PemDirectory, string.Join(Separator, file_name_params));
|
||||
@@ -45,7 +45,7 @@ namespace DigitalData.Core.Security.Config
|
||||
decryptor.SetPem(File.ReadAllText(path));
|
||||
else
|
||||
{
|
||||
var pem = decryptor.Encrypt
|
||||
var pem = decryptor.IsEncrypted
|
||||
? Instance.RSAFactory.CreateEncryptedPrivateKeyPem(pbeParameters: PbeParameters, keySizeInBits: KeySizeInBits, password: Secrets.PBE_PASSWORD)
|
||||
: Instance.RSAFactory.CreatePrivateKeyPem(keySizeInBits: KeySizeInBits);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user