protected BaseSecretStore( IProtectedSecretRepository secrets, IEncryptionManager encryptionManager) { _secrets = secrets; _encryptionManager = encryptionManager; }
public CachingClearSecretStore( IProtectedSecretRepository secrets, IEncryptionManager encryptionManager, ISecretCache <ClearSecret> cache) : base(secrets, encryptionManager) { _cache = cache; }
public void SetDependencies(string tableName) { var region = RegionEndpoint.EUWest1; var km = new AwsKmsKeyManager(region); var config = new AmazonDynamoDBConfig { RegionEndpoint = region }; var repo = new AwsDynamoProtectedSecretRepository(config, tableName); var em = new EncryptionManager(km); var ss = new SecretStore(repo, em); _secretStore = ss; _repo = repo; }
public SecretStore(IProtectedSecretRepository secrets, IEncryptionManager encryptionManager) : base(secrets, encryptionManager) { }