String inputDir = BASEDIR + SEP + "src/test/resources" + SEP
+ "org" + SEP + "apache" + SEP + "xml" + SEP + "security" + SEP
+ "samples" + SEP + "input";
FileInputStream inStream = new FileInputStream(inputDir + SEP + "keystore.jks");
KeyStore ks = KeyStore.getInstance("JKS");
ks.load(inStream, "xmlsecurity".toCharArray());
FileInputStream inStream2 = new FileInputStream(inputDir + SEP + "keystore2.jks");
KeyStore ks2 = KeyStore.getInstance("JCEKS");
ks2.load(inStream2, "xmlsecurity".toCharArray());
StorageResolver storage = new StorageResolver(ks);
storage.add(ks2);
Iterator<?> iter = storage.getIterator();