示例#1
0
 public bool Contains(string resource, string userName)
 {
     try
     {
         CurrentVault.Retrieve(resource, userName);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
示例#2
0
 public void RemoveCredential(string resource, string userName)
 {
     CurrentVault.Remove(CurrentVault.Retrieve(resource, userName));
 }
示例#3
0
 public string RetrievePassword(string resource, string userName)
 {
     return(CurrentVault.Retrieve(resource, userName).Password);
 }