Certificate.js

These functions are used for X.509 credential handling.

You can use these functions to create a user interface in HTML and JavaScript, that uses X.509 certificates as the Workflow credentials.

This file contains the functions that allow parsing a certificate date, creating a certificate from a JSON string value, retrieving a certificate from a file (Android), retrieving a certificate from the server (iOS), and so on.

Function Description
CertificateStore.parseCertDate(value) Parses a certificate date.
CertificateStore.createCert(value) Creates a certificate from the specified JSON string value.
CertificateStore.prototype.certificateLabels(filterSubject, filterIssuer) Returns a list of all the certificate labels in this store (can be empty). Each certificate in this store has a unique label.
CertificateStore.getDefault() Returns a certificate without the signedCertificate part set.
CertificateStore.prototype.getPublicCertificate(label) Returns a certificate without the signedCertificate part set.
Supported platforms:
  • Windows Mobile Professional
  • BlackBerry
CertificateStore.prototype.getSignedCertificate(label, password) Returns the certificate with the specified label, decrypting it if necessary using the specified password; or returns null if the certificate is encrypted and the password is incorrect.
Supported platforms:
  • Windows Mobile Professional
  • BlackBerry
CertificateStore.prototype.listAvailableCertificatesFromFileSystem(folder, fileExtension) Returns a list of full path names for the certificate files found in the file system for import.

Android platforms only.

CertificateStore.prototype.getSignedCertificateFromFile(filePath, password) Gets a certificate from a file.

Android platforms only.

CertificateStore.prototype.getSignedCertificateFromServer(username, serverPassword, certPassword) Gets a certificate from the server.

iOS platforms only.

You can choose to set the results of a getSignedCertificate function as the password.

Example 1