000026139 - How to determine version of RSA BSAFE Cert-J library

Document created by RSA Customer Support Employee on Jun 16, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000026139
Applies ToRSA BSAFE Cert-J
IssueHow to determine version of RSA BSAFE Cert-J library
When more than one RSA BSAFE Cert-J library is available, it may be necessary to compare results or features. For development reasons, it maybe best to have the application display which library was used to create the class file.
Resolution
RSA BSAFE Cert-J includes a static integer CertJ.CERT_J_VERSION which contains the version number. The following is an example that displays the version of Cert-J used:

System.out.println("CertJ Version is " + CertJ.CERT_J_VERSION);

NOTE: As this is a static variable, it will be included at compile time. This means it will only confirm the library used to compile the class and not the one used at runtime.
Legacy Article IDa22344

Attachments

    Outcomes