public static final String GIGI_CONFIG_VERSION = "GigiConfigV1.0";
- byte[] cacerts;
+ private byte[] cacerts;
- byte[] keystore;
+ private byte[] keystore;
- Properties mainProps = new Properties();
+ private Properties mainProps = new Properties();
private char[] keystorpw;
}
public KeyStore getPrivateStore() throws GeneralSecurityException, IOException {
+ if (keystore == null || keystorpw == null) {
+ return null;
+ }
KeyStore ks1 = KeyStore.getInstance("pkcs12");
ks1.load(new ByteArrayInputStream(keystore), keystorpw);
return ks1;