public RelyingPartyConfiguration(IActionUrlBuilder urlBuilder, IEncryptionSettings encryptionSettings, ISigningSettings signingSettings) { _urlBuilder = urlBuilder; _encryptionSettings = encryptionSettings; _signingSettings = signingSettings; }
public void EncryptedFileProvider_ThrowsArgumentNullException(IFileProvider fileProvider, IEncryptionSettings encryptionSettings) { Assert.Throws <ArgumentNullException>(() => { var provider = new EncryptedFileProvider(fileProvider, encryptionSettings); }); }
public EncryptedFileProvider(IFileProvider fileProvider, IEncryptionSettings encryptionSettings) { _fileProvider = fileProvider ?? throw new ArgumentNullException(nameof(fileProvider)); _encryptionSettings = encryptionSettings ?? throw new ArgumentNullException(nameof(encryptionSettings)); }
/// <summary> /// Construtor padrão /// </summary> /// <param name="security">Configurações de segurança</param> /// <param name="general">Configurações gerais</param> /// <param name="logger">Logger</param> public Encryption( IEncryptionSettings security, IGeneralSettings general, ILogger <Encryption> logger) { _security = security; _general = general; _logger = logger; }
public EncryptTransformFactory(IEncryptionSettings settings) : base(settings, true) { }
public DatabaseEncryptionService(IEncryptionSettings encryptionSettings) { _aesKey = EncodingHelper.FromSafeUrlBase64(encryptionSettings.DataEncryptionKey); _aesIv = EncodingHelper.FromSafeUrlBase64(encryptionSettings.DataEncryptionIv); }
public AesEncryptionDataTransform(IEncryptionSettings encryptionSettings) { _encryptionSettings = encryptionSettings ?? throw new ArgumentNullException(nameof(encryptionSettings)); }
protected CryptoTransformFactory(IEncryptionSettings settings, bool isEncryptor) { _settings = settings; _isEncryptor = isEncryptor; }
public DecryptTransformFactory(IEncryptionSettings settings) : base(settings, false) { }