Lines Matching defs:is

5  * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
96 // so that there is "Warning" and not translated into other language
116 * if <code>cmd</code> is running on a terminal
124 // "X" is appended so that we can precisely test how input is consumed
127 // make sure the input string is no more no less
152 // since System.in is overrided, the KeyTool.main() method will
205 void testOK(InputStream is, String cmd) throws Exception {
207 test(is, cmd);
218 void testFail(InputStream is, String cmd) throws Exception {
221 test(is, cmd);
265 System.err.println("ERR is:\n"+err);
266 System.err.println("OUT is:\n"+out);
295 FileInputStream is = null;
297 is = new FileInputStream(file);
299 ks.load(is, pass.toCharArray());
300 is.close();
336 assertTrue(certImpl.getVersion() == 3, "Version is not 3");
344 assertTrue(!ks.containsAlias("p1"), "there is no p1");
345 assertTrue(!ks.containsAlias("c1"), "there is no c1");
346 assertTrue(ks.containsAlias("p11"), "there is p11");
347 assertTrue(ks.containsAlias("c11"), "there is c11");
348 assertTrue(ks.containsAlias("p111"), "there is p111");
364 assertTrue(ks.getKey("s1", "changeit".toCharArray()).getAlgorithm().equalsIgnoreCase("DES"), "s1 is DES");
365 assertTrue(ks.getKey("s1", "changeit".toCharArray()).getEncoded().length == 8, "DES is 56");
366 assertTrue(ks.getKey("s2", "changeit".toCharArray()).getEncoded().length == 24, "DESede is 168");
367 assertTrue(ks.getKey("s2", "changeit".toCharArray()).getAlgorithm().equalsIgnoreCase("DESede"), "s2 is DESede");
368 assertTrue(ks.getKey("s3", "changeit".toCharArray()).getAlgorithm().equalsIgnoreCase("AES"), "s3 is AES");
369 assertTrue(ks.getKey("s4", "changeit".toCharArray()).getAlgorithm().equalsIgnoreCase("DES"), "s4 is DES");
370 assertTrue(ks.getKey("s5", "keypass".toCharArray()).getAlgorithm().equalsIgnoreCase("DES"), "s5 is DES");
371 assertTrue(ks.getKey("s6", "keypass".toCharArray()).getAlgorithm().equalsIgnoreCase("DES"), "s6 is DES");
384 // import, shouldn't mention destalias/srckeypass/destkeypass if srcalias is no given
463 // maybe c1 or p1 has been imported before s1 or s2 is touched, anyway we know yesNo is only asked once.
500 // pkcs11, the password maybe different and maybe PKCS11 is not supported
502 // in case last test is not executed successfully
551 assertTrue(!ks.containsAlias("p1"), "p1 is not imported");
556 assertTrue(ks.containsAlias("p1"), "p1 is imported");
557 assertTrue(ks.containsAlias("p2"), "p2 is imported");
1024 throw new RuntimeException("Extra items, pos is " + pos);
1182 // 2. keytool -genkey -v -keysize 512 Enter "a" for the keystore password. Check error (password too short). Enter "password" for the keystore password. Hit 'return' for "first and last name", "organizational unit", "City", "State", and "Country Code". Type "yes" when they ask you if everything is correct. Type 'return' for new key password.
1192 // 6. keytool -genkey -v -keysize 512 -alias mykey2 -storepass password Hit 'return' for "first and last name", "organizational unit", "City", "State", and "Country Code". Type "yes" when they ask you if everything is correct. Type 'return' for new key password.
1234 assertTrue(ex.indexOf("if -protected is specified, then") != -1);
1237 assertTrue(ex.indexOf("if -protected is specified, then") != -1);
1240 assertTrue(ex.indexOf("if -protected is specified, then") != -1);
1258 //(check that cert subject DN is [cn=selfCert])
1338 * terminal typing on the keyboard while the keytool program is running.
1345 * This is why i create HumanInputStream, which will only send a single line
1418 HumanInputStream is;
1421 is = new HumanInputStream(s);
1422 reader = new BufferedReader(new InputStreamReader(is));
1428 assertTrue(is.read() == expection);
1433 assertTrue(is.read() == keys[i]);
1438 String s = new BufferedReader(new InputStreamReader(is)).readLine();