Code for Change Master Password
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user