public static KeyStore createEmptyKeyStore(){
  try {
    KeyStore keyStore=KeyStore.getInstance(KeyStore.getDefaultType());
    keyStore.load(null);
    return keyStore;
  }
 catch (  KeyStoreException|NoSuchAlgorithmException|CertificateException|IOException e) {
    throw new RuntimeException("Failed to create empty keystore",e);
  }
}

public static KeyStore createEmptyKeyStore ( ) { try { KeyStore keyStore = KeyStore . getInstance ( KeyStore . getDefaultType ( ) ) ; keyStore . load ( null ) ; return keyStore ; } catch ( KeyStoreException | NoSuchAlgorithmException | CertificateException | IOException e ) { throw new RuntimeException ( "Failed to create empty keystore" , e ) ; } }
create an empty key store
