IoT CAS Frameworks/IOT_Server/Server_Admin_Framework/source/ConsumerAPI/src/java/license/Utils.java
public boolean checkFeature(String pFeature, String[] key) {

        try {

            String[] s2 = new String[50];
            logger.debug("checkFeature(): Feature = " + pFeature);
            //  System.out.println("checkFeature(): Feature = " + pFeature);
            for (int m = 6; m < key.length; m++) {
                // System.out.println("checkFeature(): par2 =" + key[m]);
                s2 = key[m].split("=");
                //  System.out.println("checkFeature(): s2= " + s2[0] + " " + s2[1]);
                //for (int i=0; i<labels.length; i++){
                if (pFeature != null) {
                    if (s2[0].equalsIgnoreCase(pFeature)) {
                        if (s2[1].equalsIgnoreCase("enabled")) {
                            logger.debug("checkFeature(): feature enabled");
                            //    System.out.println("checkFeature(): feature enabled");
                            return true;
                        } else {
                            logger.debug("checkFeature(): feature not enabled. Returning False");
                            //   System.out.println("checkFeature(): feature not enabled. Returning False");
                            return false;
                        }
                    }
                }
                //}
            }

        } catch (NullPointerException e1) {
            e1.getMessage();
        } catch (Exception e) {
            e.printStackTrace();
        }
        logger.debug("checkFeature(): Feature " + pFeature + " not found.....returning false");
        //  System.out.println("checkFeature(): Feature " + pFeature + " not found.....returning false");
        return false;
    }
/*
     * Check if the requested feature is there in the license key string
     */
Check if the requested feature is there in the license key string
Check if the requested feature is there in the license key string
public boolean checkFeature(String pFeature, String[] key) {
        try {
            String[] s2 = new String[50];
            logger.debug("checkFeature(): Feature = " + pFeature);
            for (int m = 6; m < key.length; m++) {
                s2 = key[m].split("=");
                if (pFeature != null) {
                    if (s2[0].equalsIgnoreCase(pFeature)) {
                        if (s2[1].equalsIgnoreCase("enabled")) {
                            logger.debug("checkFeature(): feature enabled");
                            return true;
                        } else {
                            logger.debug("checkFeature(): feature not enabled. Returning False");
                            return false;
                        }
                    }
                }
            }
        } catch (NullPointerException e1) {
            e1.getMessage();
        } catch (Exception e) {
            e.printStackTrace();
        }
        logger.debug("checkFeature(): Feature " + pFeature + " not found.....returning false");
        return false;
    }
public boolean checkFeature ( String pFeature , String [ ] key ) { try { String [ ] s2 = new String [ 50 ] ; logger . debug ( "checkFeature(): Feature = " + pFeature ) ; for ( int m = 6 ; m < key . length ; m ++ ) { s2 = key [ m ] . split ( "=" ) ; if ( pFeature != null ) { if ( s2 [ 0 ] . equalsIgnoreCase ( pFeature ) ) { if ( s2 [ 1 ] . equalsIgnoreCase ( "enabled" ) ) { logger . debug ( "checkFeature(): feature enabled" ) ; return true ; } else { logger . debug ( "checkFeature(): feature not enabled. Returning False" ) ; return false ; } } } } } catch ( NullPointerException e1 ) { e1 . getMessage ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } logger . debug ( "checkFeature(): Feature " + pFeature + " not found.....returning false" ) ; return false ; }
Check if the requested feature is there in the license key string
Check if the requested feature is there in the license key string
//  System.out.println("checkFeature(): Feature = " + pFeature);
 // System.out.println("checkFeature(): par2 =" + key[m]);
 //  System.out.println("checkFeature(): s2= " + s2[0] + " " + s2[1]);
 //for (int i=0; i<labels.length; i++){
 //    System.out.println("checkFeature(): feature enabled");
 //   System.out.println("checkFeature(): feature not enabled. Returning False");
 //}
 //  System.out.println("checkFeature(): Feature " + pFeature + " not found.....returning false");
