public void testCreateKeys() throws Exception { if (!crypt.hasKeyOf("alice")) { /* KeyPair kp= */ crypt.generateKeys(alicename, alicepwd.toCharArray(), null, null); } if (!crypt.hasKeyOf("bob")) { /* KeyPair kp= */ crypt.generateKeys(bobname, bobpwd.toCharArray(), null, null); } }
public void testCreate() throws Exception { crypt = new JCECrypter(null, null, adminname, adminpwd.toCharArray()); assertTrue(crypt.hasKeyOf(adminname)); }