public RelyingPartyConfiguration(IActionUrlBuilder urlBuilder, IEncryptionSettings encryptionSettings,
     ISigningSettings signingSettings)
 {
     _urlBuilder = urlBuilder;
     _encryptionSettings = encryptionSettings;
     _signingSettings = signingSettings;
 }
Exemplo n.º 2
0
 public void EncryptedFileProvider_ThrowsArgumentNullException(IFileProvider fileProvider,
                                                               IEncryptionSettings encryptionSettings)
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         var provider = new EncryptedFileProvider(fileProvider, encryptionSettings);
     });
 }
Exemplo n.º 3
0
 public EncryptedFileProvider(IFileProvider fileProvider,
                              IEncryptionSettings encryptionSettings)
 {
     _fileProvider = fileProvider ??
                     throw new ArgumentNullException(nameof(fileProvider));
     _encryptionSettings = encryptionSettings ??
                           throw new ArgumentNullException(nameof(encryptionSettings));
 }
Exemplo n.º 4
0
 /// <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;
 }
Exemplo n.º 5
0
 public EncryptTransformFactory(IEncryptionSettings settings) : base(settings, true)
 {
 }
Exemplo n.º 6
0
 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));
 }
Exemplo n.º 8
0
 protected CryptoTransformFactory(IEncryptionSettings settings, bool isEncryptor)
 {
     _settings    = settings;
     _isEncryptor = isEncryptor;
 }
Exemplo n.º 9
0
 public DecryptTransformFactory(IEncryptionSettings settings) : base(settings, false)
 {
 }