Chambersign
Chambersign introduction
Detect if Middleware has been installed.
Windows
const entity = "chambersign";
const type = "middleware";
const initPath = "C:\\Program Files\\ChamberSign"
T1CSdk.T1CClient.initialize(config).then(res => {
client = res;
core = client.core();
let fileex = client.fileex();
const middlewareInstalled = await isMiddlewareInstalled(fileex);
if (middlewareInstalled) {
// Middleware is installed you can use the chambersign token with the T1C
} else {
// Middleware not installed please install before using it with the T1C
}
}, err => {
errrorHandler(err);
});
async function isMiddlewareInstalled(fileexClient) {
fileexClient.existsType(entity, type).then(existsRes => {
if (existsRes.data) {
// Type exists
return checkFilesPresent(fileexClient);
} else {
// Type does not exist
fileexClient.createType(entity, type, initPath).then(createRes => {
return checkFilesPresent(fileexClient);
}, err => {
errrorHandler(err);
})
}
}, err => {
// Type exists error, try to create and then check if middleware is installed
fileexClient.createType(entity, type, initPath).then(createRes => {
return checkFilesPresent(fileexClient);
}, err => {
errrorHandler(err);
})
});
}
async function checkFilesPresent(fileexClient) {
await fileexClient.existsFile(entity, type, "HashLogic\\bin\\idoPKCS.dll").then(existsFileRes => {
return existsFileRes;
}, err => {
return false;
})
}Interface
Models
Initialise the Trust1Connector JS
Obtain the Reader information
Certificates
Authentication Certificate
Non-repudiation Certificate
Filter Certificates
Sign Data
Sign Hash without pin-pad
Sign Hash with pin-pad
Bulk Signing
Bulk PIN Reset
Verify PIN
Verify PIN without pin-pad
Verify PIN with pin-pad
Authentication
Get valid algorithms to use for Sign or Authenticate
Last updated
Was this helpful?
