コード例 #1
0
 protected BaseSecretStore(
     IProtectedSecretRepository secrets,
     IEncryptionManager encryptionManager)
 {
     _secrets           = secrets;
     _encryptionManager = encryptionManager;
 }
コード例 #2
0
 public CachingClearSecretStore(
     IProtectedSecretRepository secrets,
     IEncryptionManager encryptionManager,
     ISecretCache <ClearSecret> cache) : base(secrets, encryptionManager)
 {
     _cache = cache;
 }
コード例 #3
0
        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;
        }
コード例 #4
0
 public SecretStore(IProtectedSecretRepository secrets, IEncryptionManager encryptionManager)
     : base(secrets, encryptionManager)
 {
 }