public abstract class Utils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Utils.ETF |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
static boolean |
SILENT |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
arv(byte[] l) |
static void |
cIS(int actual) |
static byte[] |
encrypt(byte[] bytes,
String key) |
static String |
encrypt(String s) |
static String |
encrypt(String password,
String key,
int number) |
static License |
generateSignedLicense(String codigo,
String persona,
String organizacion,
String localidad,
String pais,
Date validity,
String direccionMAC,
String ip,
String sistemaOperativo,
byte[] bytesKey) |
static License |
generateSignedLicense(String code,
String person,
String organization,
String localidad,
String county,
Date validity,
String macAddress,
String ip,
String sistemaOperativo,
byte[] bytesKey,
boolean local,
int nUsers,
String caracteristicas) |
static String |
getAllV() |
static String |
getFeatures() |
protected static License |
getL(byte[] l) |
static String |
getLC() |
static Object |
getLInfoObject() |
static int |
getUserLimit() |
static String |
getV(String name) |
static boolean |
isDevelopementL() |
static void |
main(String[] args) |
static boolean |
v() |
static boolean |
v(boolean out) |
static boolean |
v(String number) |
static boolean |
verify(License lic) |
static boolean |
verifyLocal(boolean isRunningLocal) |
protected static void |
verifyValidity(License l) |
public static String encrypt(String s) throws IllegalArgumentException
IllegalArgumentExceptionpublic static byte[] encrypt(byte[] bytes,
String key)
throws IllegalArgumentException,
UnsupportedEncodingException
public static String encrypt(String password, String key, int number) throws IllegalArgumentException, UnsupportedEncodingException
public static License generateSignedLicense(String codigo, String persona, String organizacion, String localidad, String pais, Date validity, String direccionMAC, String ip, String sistemaOperativo, byte[] bytesKey) throws UnsupportedEncodingException, InvalidKeySpecException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, InvalidKeyException
public static License generateSignedLicense(String code, String person, String organization, String localidad, String county, Date validity, String macAddress, String ip, String sistemaOperativo, byte[] bytesKey, boolean local, int nUsers, String caracteristicas) throws UnsupportedEncodingException, InvalidKeySpecException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, InvalidKeyException
public static boolean verify(License lic) throws NoSuchAlgorithmException, NoSuchProviderException, SignatureException, InvalidKeyException, InvalidKeySpecException
public static boolean verifyLocal(boolean isRunningLocal)
throws Exception
Exceptionpublic static boolean v(boolean out)
public static String getAllV()
public static String getLC()
public static boolean v(String number)
public static Object getLInfoObject()
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.