use of com.bsnbase.sdk.entity.resp.fabric.ResUserInfo in project PCNGateway-Java-SDK by BSNDA.
the class Config method initConfig.
public void initConfig(Config cg) {
if (config == null) {
valid(cg);
config = cg;
keyStore = new KeyStore(config.getMspDir());
ResUserInfo res = null;
try {
res = AppService.getAppInfo();
} catch (IOException e) {
e.printStackTrace();
throw new GlobalException(ResultInfoEnum.GET_APP_INFO_ERROR);
}
if (CaTypeEnum.NON_HOSTED.nCode == res.getCaType() && AppTypeEnum.FABIRC.getValue().equals(res.getAppType().toLowerCase())) {
validMspDir(config);
}
appInfo = res;
}
}
Aggregations