Skip to content

TransNexus/sti-oobs-sample

Repository files navigation

STI-OOBS Sample

  1. Generates a PASSporT
  2. Checks the TransNexus STI-CPS health
  3. Prints the health response body
  4. Generates an STI-CPS publish authentication token
  5. Publishes the PASSporT to the TransNexus STI-CPS
  6. Prints the publish response body
  7. Generates an STI-CPS retrieve authentication token
  8. Retrieves the PASSporT from the TransNexus STI-CPS
  9. Prints the retrieve response body
  10. Prints the latency of each request

Config

The private key must be in the file ./privateKey.pem. The config file must be ./config.json. The config file must include all of the fields show below:

{
  "certificateRepositoryUrl": "https://certificates.example.com/example.pem",
  "serviceProviderCode": "1234",
  "callingNumber": "12013776051",
  "calledNumber": "19032469103",
  "attestationLevel": "A",
  "retentionTime": 3
}

Releases

No releases published

Packages

No packages published