Home | History | Annotate | Download | only in spec

Lines Matching refs:password

38      * PBEKeySpec(char[] password) method testing. Tests the behavior of
51 char[] password = new char[] {'1', '2', '3', '4', '5'};
52 PBEKeySpec pbeks = new PBEKeySpec(password);
53 password[0] ++;
54 assertFalse("The change of password specified in the constructor "
56 password[0] == pbeks.getPassword()[0]);
60 * PBEKeySpec(char[] password, byte[] salt, int iterationCount, int
66 char[] password = new char[] {'1', '2', '3', '4', '5'};
83 new PBEKeySpec(password, null, iterationCount, keyLength);
92 new PBEKeySpec(password, new byte [0], iterationCount, keyLength);
99 new PBEKeySpec(password, salt, -1, keyLength);
106 new PBEKeySpec(password, salt, iterationCount, -1);
113 new PBEKeySpec(password, salt, 0, keyLength);
120 new PBEKeySpec(password, salt, iterationCount, 0);
126 PBEKeySpec pbeks = new PBEKeySpec(password, salt,
128 password[0] ++;
129 assertFalse("The change of password specified in the constructor "
131 password[0] == pbeks.getPassword()[0]);
139 * PBEKeySpec(char[] password, byte[] salt, int iterationCount) method
145 char[] password = new char[] {'1', '2', '3', '4', '5'};
160 new PBEKeySpec(password, null, iterationCount);
169 new PBEKeySpec(password, new byte [0],
177 new PBEKeySpec(password, salt, -1);
184 new PBEKeySpec(password, salt, 0);
190 PBEKeySpec pbeks = new PBEKeySpec(password, salt, iterationCount);
191 password[0] ++;
192 assertFalse("The change of password specified in the constructor "
194 password[0] == pbeks.getPassword()[0]);
202 * clearPassword() method testing. Tests that internal copy of password
206 char[] password = new char[] {'1', '2', '3', '4', '5'};
207 PBEKeySpec pbeks = new PBEKeySpec(password);
212 + "after the clearing the password.");
218 * getPassword() method testing. Tests that returned password is equal
219 * to the password specified in the constructor and that the change of
223 char[] password = new char[] {'1', '2', '3', '4', '5'};
224 PBEKeySpec pbeks = new PBEKeySpec(password);
226 if (! Arrays.equals(password, result)) {
227 fail("The returned password is not equal to the specified "
231 assertFalse("The change of returned by getPassword() method password "
244 char[] password = new char[] {'1', '2', '3', '4', '5'};
247 PBEKeySpec pbeks = new PBEKeySpec(password, salt, iterationCount);
257 pbeks = new PBEKeySpec(password);
269 char[] password = new char[] {'1', '2', '3', '4', '5'};
272 PBEKeySpec pbeks = new PBEKeySpec(password, salt, iterationCount);
276 pbeks = new PBEKeySpec(password);
286 char[] password = new char[] {'1', '2', '3', '4', '5'};
290 PBEKeySpec pbeks = new PBEKeySpec(password, salt,
295 pbeks = new PBEKeySpec(password);