LogoLogo
v3.8.x
v3.8.x
  • Introduction
  • Concept
  • Prerequisites
  • Trust1Connector JS SDK
  • Release Notes
  • Installation Profiles
  • Core
    • Setting up the SDK
    • Initialize Trust1Connector
    • DNS Rebind
    • Readers
    • Core Service
    • Downloading latest Trust1Connector
    • Consent
    • Authenticated client
    • Module/container setup
    • Status codes / error handeling
    • Quick-Migration Guide (v2 -> v3)
  • Token
    • Token typing models
    • Generic token
    • Belgian eID
    • Aventra MyEID PKI
    • Idemia Cosmo One v8.2
    • Oberthur Cosmo One v7.3
    • Diplad (BeLawyer)
    • Chambersign*
    • Camerfirma*
    • Certigna*
    • Certinomis*
    • Jcop3*
    • Airbus
    • Eherkenning
    • Safenet*
    • Luxembourg ID
    • LuxTrust
  • Truststore
    • Introduction
    • Truststore API
    • Other PKCS11 Compatible Tokens*
  • Payment
    • Payment typing models
    • EMV*
    • Crelan
  • FIle
    • File exchange
    • Custom
      • VDDS
  • HSM
    • Remote loading
  • Other
    • Print
    • Wacom*
    • Simple Sign
  • Miscellaneous
    • Prerequisites New Token/Smart Card
    • Prerequisites Support
    • Troubleshooting
      • Connector Connection Issues
      • Windows
      • Windows dynamic port range
      • Mac OSX Sonoma and higher
      • Mac OSX Sonoma and higher Smart-card reader issue
      • MacOS Rosetta
      • Enable Debug Logging
      • Changing Device date/time
      • Disable DNS rebind pop-up
    • Installation FAQ
    • Removal of Trust1Connector
  • Installation Manual
    • Windows
    • Mac OSX
Powered by GitBook
On this page
  • Functions
  • Get SimpleSign module object
  • Info
  • Initialize context
  • Upload file context

Was this helpful?

Export as PDF
  1. Other

Simple Sign

export interface AbstractSimpleSign {
  getInfo(): Promise<GenericT1CResponse<SimpleSignInfoResponse>>;
  initializeContext(origin: string): Promise<GenericT1CResponse<SimpleSignInitializeResponse>>;
  uploadFileContext(origin: string, request: SimpleSignUploadFileContextRequest): Promise<GenericT1CResponse<SimpleSignUploadFileContextResponse>>;
}

export interface SimpleSignInfoResponse {
  version: string;
  localFolder: string;
}

export interface SimpleSignInitializeResponse {
  folderBootstrap: string;
  folderExternalUploaded: string;
  folderExternalSigned: string;
  filexOrigin: string;
  filexEntity: string;
  filexTypes: Array<string>;
}

export interface SimpleSignUploadFileContextResponse {
  origin: string;
  entity: string;
  filename: string;
  callback: string;
  externalId: string;
}

export interface SimpleSignUploadFileContextRequest {
  filename: string;
  callback: string;
  externalId: string;
}  

Functions

Get SimpleSign module object

T1CSdk.T1CClient.initialize(config).then(res => {
    client = res;
    let simplesign = client.simplesign();
}, err => {
    console.error(error)
})

Info

simplesign.getInfo();

The response will look like

{
    "success": true,
    "data": {
        "version": "0.2.5",
        "localFolder": "/Users/someuser/Desktop/simplesign"
    }
}

Initialize context

let origin = 'https://acc-rmc.t1t.io';
simplesign.initializeContext(origin);

The response will look like

{
    "success": true,
    "data": {
        "folderBootstrap": "/Users/someuser/Desktop/simplesign",
        "folderExternalUploaded": "/Users/someuser/Desktop/simplesign/_uploaded/_external",
        "folderExternalSigned": "/Users/someuser/Desktop/simplesign/_archived/_external",
        "filexOrigin": "https://acc-rmc.t1t.io",
        "filexEntity": "SimpleSign",
        "filexTypes": [
            "UPLOAD",
            "SIGNED"
        ]
    }
}

Upload file context

let origin = 'https://acc-rmc.t1t.io';
let request = {
    "filename": "T1T_test.pdf",
    "callback": "https://test.app",
    "externalId": "123456"
}
simplesign.uploadFileContext(origin, request);

The response will look like

{
    "success": true,
    "data": {
        "origin": "https://acc-rmc.t1t.io",
        "entity": "SimpleSign",
        "filename": "T1T_test.pdf",
        "callback": "https://test.app",
        "externalId": "123456"
    }
}
PreviousWacom*NextPrerequisites New Token/Smart Card

Last updated 11 months ago

Was this helpful?