IoT CAS Frameworks/IOT_Server/Server_Admin_Framework/source/ConsumerAPI/src/java/license/LicenseServiceImpl.java
public String encryptLicenseKey(String customerName, String productId, String lKey) {
        String encryptedKey = null;

        try {
            EncryptDecrypt encryptorObj = new EncryptDecrypt(customerName, productId);
            System.out.println("encryptorObj=" + encryptorObj.toString());
            encryptedKey = encryptorObj.encrypt(lKey);
            System.out.println("encryptedKey=" + encryptedKey);
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("LicenseServiceImpl::encryptLicenseKey():" + e.getMessage());
        }

        return encryptedKey;
    }
/*
     * Encrypts the given license key and returns the encrypted key as byte[].
     * @see com.license.service.LicenseService#encryptLicenseKey(java.lang.String, java.lang.String)
     */
Encrypts the given license key and returns the encrypted key as byte[].
Encrypts the given license key and returns the encrypted key as byte [] .
public String encryptLicenseKey(String customerName, String productId, String lKey) {
        String encryptedKey = null;
        try {
            EncryptDecrypt encryptorObj = new EncryptDecrypt(customerName, productId);
            System.out.println("encryptorObj=" + encryptorObj.toString());
            encryptedKey = encryptorObj.encrypt(lKey);
            System.out.println("encryptedKey=" + encryptedKey);
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("LicenseServiceImpl::encryptLicenseKey():" + e.getMessage());
        }
        return encryptedKey;
    }
public String encryptLicenseKey ( String customerName , String productId , String lKey ) { String encryptedKey = null ; try { EncryptDecrypt encryptorObj = new EncryptDecrypt ( customerName , productId ) ; System . out . println ( "encryptorObj=" + encryptorObj . toString ( ) ) ; encryptedKey = encryptorObj . encrypt ( lKey ) ; System . out . println ( "encryptedKey=" + encryptedKey ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; System . out . println ( "LicenseServiceImpl::encryptLicenseKey():" + e . getMessage ( ) ) ; } return encryptedKey ; }
Encrypts the given license key and returns the encrypted key as byte[].
Encrypts the given license key and returns the encrypted key as byte [] .