package com.gkhy.huataiFourierSpecialGasMonitor.config.license;
|
|
import java.nio.charset.StandardCharsets;
|
import java.util.Base64;
|
|
public class LicenseDataCon {
|
|
private String p;
|
|
private String i;
|
|
private String pubk;
|
|
private LicenseDataCon(){
|
this.p = "ag3hs8jqodi1hs8g";
|
this.i = "8uhsgt16tsd623hd";
|
this.pubk = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwyJHfDUlEIhnATeh7nHH7Xa6gXLIahAoTsQ+/DchZXxVutptzYCVebPJDg8PX+iQvjtO4F1Lmu3OKQVFv5yOA5QAShlP163a0yGg50zNGhPesnODIhEOmEHqCTQZctEGK0x51+mxIhS0xIkCOYUpTleT8KfVS8Ab9+hDhcxQkrwIDAQAB";
|
}
|
|
public static LicenseDataCon getCon(){
|
return new LicenseDataCon();
|
}
|
|
public String getPi() {
|
if(p == null || i == null || p.isEmpty() || i.isEmpty())
|
return null;
|
String r = p+"#"+i;
|
return new String(Base64.getEncoder().encodeToString(r.getBytes(StandardCharsets.UTF_8)));
|
}
|
|
public String getPublicKey(){
|
return this.pubk;
|
}
|
}
|