public static X509Store getInstance(String type, X509StoreParameters parameters) throws NoSuchStoreException { try { X509Util.Implementation impl = X509Util.getImplementation("X509Store", type); return createStore(impl, parameters); } catch (NoSuchAlgorithmException e) { throw new NoSuchStoreException(e.getMessage()); } }
public static X509Store getInstance(String type, X509StoreParameters parameters, Provider provider) throws NoSuchStoreException { try { X509Util.Implementation impl = X509Util.getImplementation("X509Store", type, provider); return createStore(impl, parameters); } catch (NoSuchAlgorithmException e) { throw new NoSuchStoreException(e.getMessage()); } }