Example of reading an HSM file.
using System;
using System.Text;
using System.IO;
namespace ReadFile
{
class Program
{
private static String strAddr = "127.0.0.1";
private static String strUsrId = "master";
private static String strPwd = "12345678";
static void Main(string[] args)
{
String objectId = "obj";
try {
api.
Connect(strAddr, strUsrId, strPwd);
Console.Out.WriteLine(BitConverter.ToString(data));
Console.Out.WriteLine("Object successfully exported!");
} finally{
}
}
}
}
API class for accessing HSM functionalities Dinamo. In this class you can program using...
Definition DinamoClient.cs:93
Exception class for errors from Dinamo.
Definition DinamoException.cs:10
override string Message
Definition DinamoException.cs:42
byte[] ReadFile(string FileId)
Definition DinamoClient.cs:2529
void Connect(string User, string Password)
Establishes an encrypted connection to the HSM using the load balance settings.
Definition DinamoClient.cs:562
void Disconnect(bool flagClose)
Terminates the connection to the HSM.
Definition DinamoClient.cs:814
Namespace denoting a set of functions for accessing the HSM Dinamo and their respective exceptions.
Definition DinamoClient.cs:12