Moving micasa 1.5 trunk to Novell forge.

This commit is contained in:
Cameron (Kamran) Mashayekhi
2005-10-11 19:51:00 +00:00
parent 082db33275
commit efe0a5e13c
691 changed files with 116628 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
using System;
using Novell.SecretStore.NSSSWrapper;
namespace Novell.SecretStore.NSSSWrapper
{
/// <summary>
/// Summary description for RemoteStore.
/// </summary>
public class RemoteStore
{
NativeCalls nc = null;
public RemoteStore()
{
//
// TODO: Add constructor logic here
//
}
public static RemoteStore getInstance()
{
RemoteStore rs = new RemoteStore();
return rs;
}
public void connect(string sHost, string sUserID, string sPassword, string sCertFile)
{
nc = new NativeCalls(sHost, sUserID, sPassword, sCertFile);
nc.getStoreInfo();
}
public string[] enumerateSecrets()
{
return nc.enumerateSecretIDs();
}
public RemoteSecret getSecret(string sSecretID)
{
return nc.getSecret(0, sSecretID);
}
public void setSecret(RemoteSecret secret)
{
nc.setSecret(secret);
}
}
}