Esempio n. 1
0
        public Vault Copy(FileInfo file, string name)
        {
            Vault copy = Vault.Load(file, name);

            Keys.Each(key =>
            {
                copy[key] = this[key];
            });

            return(copy);
        }
 public VaultCredentialProvider(VaultInfo vaultInfo, string userNameKey = "User", string passwordKey = "Password") : this(Vault.Load(vaultInfo))
 {
 }
Esempio n. 3
0
 public Vault Load()
 {
     return(Vault.Load(new FileInfo(FilePath), Name));
 }
Esempio n. 4
0
 public CredentialManager(string vaultDatabaseFilePath, string vaultName = DefaultVaultName)
     : this(Vault.Load(vaultDatabaseFilePath, vaultName))
 {
 }