Пример #1
0
 /// <summary>Constructor</summary>
 /// <param name="secretStore">Vault Secret Store</param>
 /// <param name="logger">Logger</param>
 public VaultBasicAuthenticationSecretParser(
     IVaultSecretStore secretStore,
     ILogger <VaultBasicAuthenticationSecretParser> logger)
 {
     this.secretStore = secretStore.ThrowIfNull(nameof(secretStore));
     this.logger      = logger.ThrowIfNull(nameof(logger));
 }
 /// <summary>Constructor</summary>
 /// <param name="secretStore">Vault Secret Store</param>
 /// <param name="contextParser">Owin Context Parser</param>
 public VaultBasicAuthenticationSecretParser(IVaultSecretStore secretStore, IRequestParser contextParser)
 {
     this.secretStore   = secretStore.ThrowIfNull(nameof(secretStore));
     this.contextParser = contextParser.ThrowIfNull(nameof(contextParser));
 }
 /// <summary>Constructor</summary>
 /// <param name="secretStore">Secret Store</param>
 /// <param name="clientStore">Client Store</param>
 public ClientSecretStore(IVaultSecretStore secretStore, IClientDataStore clientStore)
 {
     this.secretStore = secretStore.ThrowIfNull(nameof(secretStore));
     this.clientStore = clientStore.ThrowIfNull(nameof(clientStore));
 }
Пример #4
0
 /// <summary>Constructor</summary>
 /// <param name="secretStore">Vault Secret Store</param>
 /// <param name="resourceStore">Resource Store</param>
 public ResourceSecretStore(IVaultSecretStore secretStore, IResourceStore resourceStore)
 {
     this.secretStore   = secretStore.ThrowIfNull(nameof(secretStore));
     this.resourceStore = resourceStore.ThrowIfNull(nameof(resourceStore));
 }
Пример #5
0
 /// <summary>Constructor</summary>
 /// <param name="secretStore">Vault Secret Store</param>
 /// <param name="logger"></param>
 public VaultPostBodySecretParser(IVaultSecretStore secretStore, ILogger <VaultPostBodySecretParser> logger)
 {
     this.secretStore = secretStore.ThrowIfNull(nameof(secretStore));
     this.logger      = logger.ThrowIfNull(nameof(logger));
 }
Пример #6
0
 /// <summary>Constructor</summary>
 /// <param name="secretStore">Vault Secret Store</param>
 /// <param name="scopeStore">Scope Store</param>
 public ScopeSecretStore(IVaultSecretStore secretStore, IScopeStore scopeStore)
 {
     this.secretStore = secretStore.ThrowIfNull(nameof(secretStore));
     this.scopeStore  = scopeStore.ThrowIfNull(nameof(scopeStore));
 }