public SecretDecryptionContext( IKeyGenerator keyGenerator, ISecretStore secretStore, ISymmetricEncryptor secretEncryptor, ISecretValidator secretValidator, IServiceProvider serviceProvider, PassawordContext context, DecryptionEventArgs decryptEventArgs, DecryptionFailedEventArgs decryptFailedEventArgs, ILogger <SecretDecryptionContext> logger) { _secretStore = secretStore; _secretEncryptor = secretEncryptor; _secretValidator = secretValidator; _serviceProvider = serviceProvider; _context = context; _decryptEventArgs = decryptEventArgs; _decryptFailedEventArgs = decryptFailedEventArgs; _logger = logger; _decryptEventArgs.Context = this; _decryptFailedEventArgs.Context = this; EncryptionKey = keyGenerator.GetDefaultEncryptionKey(); DecryptionKeys = keyGenerator.GetDecryptionKeys(); }
public SecretEncryptionContext( IKeyGenerator keyGenerator, ISymmetricEncryptor secretEncryptor, ISecretStore secretStore, PassawordContext context, EncryptionEventArgs eventArgs, ILogger <SecretEncryptionContext> logger) { _secretEncryptor = secretEncryptor; _secretStore = secretStore; _context = context; _eventArgs = eventArgs; _logger = logger; _eventArgs.Context = this; EncryptionKey = keyGenerator.GetDefaultEncryptionKey(); }