Beispiel #1
0
 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);
   }
 }
Beispiel #2
0
 public void testCreate() throws Exception {
   crypt = new JCECrypter(null, null, adminname, adminpwd.toCharArray());
   assertTrue(crypt.hasKeyOf(adminname));
 }