assertNull(keystoreManager.getKeystore("ks2"));
}
public void testPrivateKey() throws Exception {
KeystoreInstance ks = keystoreManager.getKeystore("ks");
String[] pk = ks.listPrivateKeys();
assertNotNull(pk);
assertEquals(1, pk.length);
assertEquals("myalias", pk[0]);
assertNotNull(ks.getCertificate("myalias"));
assertNotNull(ks.getPrivateKey("myalias"));