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("https://cryptshare.server.com");
 
// 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("sender_email@server.com", connection, "C:\temp");

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

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

 


  • No labels