Skip to end of metadata
Go to start of metadata


The license information of the current Cryptshare Server installation and the Add-On Product's own license information can be queried from the server using the Client's requestLicenseInfo() method. The method returns a LicenseInfo object containing the license status of the Cryptshare Server and the Add-On Product, as well as the respective license and subscription expiration dates in the format "YYYY-MM-DD".

Example: Requesting the License Information
// First create the Client instance
// Create a WebServiceUri for your Cryptshare Server 
WebServiceUri serviceUri = new WebServiceUri("");
// Create a CryptshareConnection instance for your WebServiceUri
CryptshareConnection connection = new CryptshareConnection(serviceUri);
// Create the Client instance with the sender's email address, 
// the CryptshareConnection, and the path to the verification store.
Client client = new Client("", connection, "C:\temp");

// Request the License Information
LicenseInfo licenseInfo = client.requestLicenseInfo();

System.out.println("Server license expiration date: " + 
System.out.println("Server subscription expiration date: " + 
System.out.println("Is server license valid? " + licenseInfo.isServerLicenseValid());
System.out.println("Product license expiration date: " + 
System.out.println("Product subscription expiration date: " + 
System.out.println("Is product license valid? " + licenseInfo.isProductLicenseValid());


  • No labels