IoT CAS Frameworks/IOT_Server/Server_Admin_Framework/source/ConsumerAPI/src/java/license/LicenseServiceImpl.java
public String decryptLicenseKey(String customerName, String productId,
            String lKey) {
        String decryptedKey = null;
        try {
            EncryptDecrypt encryptorObj = new EncryptDecrypt(customerName, productId);
            decryptedKey = encryptorObj.decrypt(lKey);

        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("LicenseServiceImpl::decryptLicenseKey():" + e.getMessage());
        }
        return decryptedKey;
    }
/*
     * De-crypts the encrypted license key read from the database.
     * @see com.license.service.LicenseService#decryptLicenseKey(byte[])
     */
De-crypts the encrypted license key read from the database.
De - crypts the encrypted license key read from the database .
public String decryptLicenseKey(String customerName, String productId,
            String lKey) {
        String decryptedKey = null;
        try {
            EncryptDecrypt encryptorObj = new EncryptDecrypt(customerName, productId);
            decryptedKey = encryptorObj.decrypt(lKey);
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("LicenseServiceImpl::decryptLicenseKey():" + e.getMessage());
        }
        return decryptedKey;
    }
public String decryptLicenseKey ( String customerName , String productId , String lKey ) { String decryptedKey = null ; try { EncryptDecrypt encryptorObj = new EncryptDecrypt ( customerName , productId ) ; decryptedKey = encryptorObj . decrypt ( lKey ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; System . out . println ( "LicenseServiceImpl::decryptLicenseKey():" + e . getMessage ( ) ) ; } return decryptedKey ; }
De-crypts the encrypted license key read from the database.
De - crypts the encrypted license key read from the database .