Code for Change Master Password

This commit is contained in:
Jim Norman
2005-11-03 20:24:36 +00:00
parent fb5296c0c3
commit 04e1ae02b0
3 changed files with 61 additions and 41 deletions

View File

@@ -30,42 +30,23 @@ namespace Novell.CASA
public static SecretStore getInstance()
{
SecretStore newSS = new SecretStore();
// Test code for new APIS
/*
miCASA.SetCredential(0, "MyTestApp", null, 0, "MyTestAPPName", "MyTestAPPPassword");
BasicCredential bc = miCASA.GetCredential(0, "MyTestApp", "Network", 0);
if (bc != null)
{
Console.WriteLine("------");
Console.WriteLine("Username = " + bc.GetUsername());
Console.WriteLine("Password = " + bc.GetPassword());
Console.WriteLine("------");
}
miCASA.RemoveCredential(0, "MyTestApp", null);
try
{
miCASA.RemoveCredential(0, "MyTestApp", null);
}
catch (Exception e)
{
Console.WriteLine("ClearCredential returned " + e.ToString());
}
*/
// end test code
SecretStore newSS = new SecretStore();
return newSS;
}
public void ReleaseInstance()
{
if (m_hsc != IntPtr.Zero)
m_NativeCalls.closeSecretStore(m_hsc);
}
/*
public static void ReleaseInstance()
{
// TODO:
}
*/
internal Secret getSecret(string sKeyChainID, uint ssFlags, string sSecretID, int iSecretType, string sEPPassword)