Searched refs:password (Results 1 - 25 of 33) sorted by relevance

12

/libcore/ojluni/src/main/java/java/net/
H A DPasswordAuthentication.java31 * Authenticator. It is simply a repository for a user name and a password.
43 private char[] password; field in class:PasswordAuthentication
47 * user name and password.
49 * <p> Note that the given user password is cloned before it is stored in
53 * @param password the user's password
55 public PasswordAuthentication(String userName, char[] password) { argument
57 this.password = password.clone();
70 * Returns the user password
[all...]
/libcore/ojluni/src/main/java/javax/crypto/spec/
H A DPBEKeySpec.java31 * A user-chosen password that can be used with password-based encryption
34 * <p>The password can be viewed as some kind of raw key material, from which
37 * <p>Different PBE mechanisms may consume different bits of each password
43 * <p>You convert the password characters to a PBE key by creating an
46 * of each password character, whereas a secret-key factory for PKCS #12 will
52 * internal value when the password stored in it is no longer needed. Hence,
53 * this class requests the password as a char array, so it can be overwritten
65 private char[] password; field in class:PBEKeySpec
71 * Constructor that takes a password
79 PBEKeySpec(char[] password) argument
107 PBEKeySpec(char[] password, byte[] salt, int iterationCount, int keyLength) argument
150 PBEKeySpec(char[] password, byte[] salt, int iterationCount) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
H A DPBEKeySpecTest.java38 * 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, ne
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DPasswordAuthenticationTest.java31 char[] password = new char[] { 'd', 'r', 'o', 'w', 's', 's', 'a', 'p' };
33 PasswordAuthentication pa = new PasswordAuthentication(name, password);
36 assertTrue("Password was not cloned", returnedPassword != password);
38 returnedPassword.length == password.length);
39 for (int counter = password.length - 1; counter >= 0; counter--)
41 returnedPassword[counter] == password[counter]);
/libcore/luni/src/test/java/libcore/java/net/
H A DOldPasswordAuthenticationTest.java27 char[] password = "hunter2".toCharArray();
35 PasswordAuthentication pa = new PasswordAuthentication(null, password);
37 assertEquals(password.length, pa.getPassword().length);
H A DFtpURLConnectionTest.java63 private static final String VALID_PASSWORD = "password";
98 checkInputUrl_invalidUserOrPassword(VALID_USER, "wrong password");
111 private void checkInputUrl_invalidUserOrPassword(String user, String password) argument
113 URL fileUrl = getFileUrlWithCredentials(user, password, FILE_PATH);
119 assertEquals("Invalid username/password", expected.getMessage());
256 // '\r\n' in the username with password
257 "user%0D%0Acommand:password",
258 // '\r\n' in the password
259 "user:password%0D%0Acommand",
260 // just '\n' in the password
306 getFileUrlWithCredentials(String user, String password, String filePath) argument
[all...]
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DKeyManagerFactorySpi.java47 * @param password the password for recovering keys
54 protected abstract void engineInit(KeyStore ks, char[] password) throws argument
61 * and password may be needed by a provider. Users of that
H A DKeyManagerFactory.java255 * The KeyStore is generally password-protected.
262 * @param password the password for recovering keys in the KeyStore
267 * (e.g. the given password is wrong).
269 public final void init(KeyStore ks, char[] password) throws argument
272 factorySpi.engineInit(ks, password);
281 * and password may be needed by a provider. Users of that
/libcore/ojluni/src/main/java/javax/sql/
H A DConnectionPoolDataSource.java62 * @param password the user's password
71 PooledConnection getPooledConnection(String user, String password) argument
H A DDataSource.java91 * @param password the user's password
96 Connection getConnection(String username, String password) argument
/libcore/ojluni/src/main/java/javax/security/auth/callback/
H A DPasswordCallback.java31 * method of a {@code CallbackHandler} to retrieve password information.
57 * and a boolean specifying whether the password should be displayed
62 * @param prompt the prompt used to request the password. <p>
64 * @param echoOn true if the password should be displayed
90 * Return whether the password
95 * @return the whether the password
103 * Set the retrieved password.
105 * <p> This method makes a copy of the input <i>password</i>
110 * @param password the retrieved password, whic
114 setPassword(char[] password) argument
[all...]
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DKeyManagerFactorySpiImpl.java16 public void engineInit(KeyStore ks, char[] password) argument
20 if (ks == null && password == null) {
28 if (password == null) {
H A DMyKeyManagerFactorySpi.java38 protected void engineInit(KeyStore ks, char[] password) argument
41 if (password == null) {
42 throw new KeyStoreException("Incorrect password");
/libcore/ojluni/src/main/java/java/security/
H A DKeyStoreSpi.java59 * password to recover it. The key must have been associated with
65 * @param password the password for recovering the key
73 * (e.g., the given password is wrong).
75 public abstract Key engineGetKey(String alias, char[] password) argument
128 * password.
140 * @param password the password to protect the key
149 char[] password,
285 * integrity with the given password
148 engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument
296 engineStore(OutputStream stream, char[] password) argument
350 engineLoad(InputStream stream, char[] password) argument
[all...]
H A DKeyStore.java115 * // get user password and file input stream
116 * char[] password = getPassword();
119 * ks.load(fis, password);
131 * new KeyStore.PasswordProtection(password);
146 * ks.store(fos, password);
150 * Note that although the same password may be used to
277 * A password-based implementation of {@code ProtectionParameter}.
284 private final char[] password; field in class:KeyStore.PasswordProtection
290 * Creates a password parameter.
292 * <p> The specified {@code password} i
297 PasswordProtection(char[] password) argument
325 PasswordProtection(char[] password, String protectionAlgorithm, AlgorithmParameterSpec protectionParameters) argument
1055 getKey(String alias, char[] password) argument
1166 setKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument
1409 store(OutputStream stream, char[] password) argument
1481 load(InputStream stream, char[] password) argument
[all...]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DTestKeyStoreSpi.java108 public Key engineGetKey(String alias, char[] password) argument
112 if (password == null) {
146 public void engineLoad(InputStream stream, char[] password) argument
154 if (password == null) {
156 } else if (password.length == 0) {
175 char[] password = ((PasswordProtection) pParam).getPassword();
176 if (password == null) {
197 public void engineSetKeyEntry(String alias, Key key, char[] password, argument
227 public void engineStore(OutputStream stream, char[] password) argument
233 if (password
[all...]
H A DMyKeyStoreSpi.java48 public Key engineGetKey(String alias, char[] password) argument
68 public void engineSetKeyEntry(String alias, Key key, char[] password, argument
129 public void engineStore(OutputStream stream, char[] password) argument
142 public void engineLoad(InputStream stream, char[] password) argument
H A DMyKeyStore.java63 public Key engineGetKey(String alias, char[] password) argument
92 public void engineSetKeyEntry(String alias, Key key, char[] password, argument
178 public void engineStore(OutputStream stream, char[] password) argument
201 public void engineLoad(InputStream stream, char[] password) argument
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DSecretKeyFactoryTest.java53 // PBEKeySpecs password only constructor
129 char[] password = "password".toCharArray();
140 test_PBKDF2_UTF8(password, salt, iterations, keyLength, expected);
141 test_PBKDF2_8BIT(password, salt, iterations, keyLength, expected);
150 char[] password = ("All n-entities must communicate with other "
164 test_PBKDF2_UTF8(password, salt, iterations, keyLength, expected);
165 test_PBKDF2_8BIT(password, salt, iterations, keyLength, expected);
175 char[] password = "\u0141\u0142".toCharArray();
191 test_PBKDF2_UTF8(password, sal
195 test_PBKDF2_8BIT(char[] password, byte[] salt, int iterations, int keyLength, byte[] expected) argument
206 test_PBKDF2_UTF8(char[] password, byte[] salt, int iterations, int keyLength, byte[] expected) argument
[all...]
H A DMacTest.java103 // pbeKeySpec = new PBEKeySpec(password);
132 char[] password = "password".toCharArray();
140 PBEKeySpec pbeKeySpec = new PBEKeySpec(password,
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DPKIXParametersTest.java49 char[] password = "password".toCharArray();
56 ks.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain());
63 keyOnly.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain());
/libcore/luni/src/test/java/tests/support/
H A DSupport_SQL.java86 String password) throws SQLException {
88 return DriverManager.getConnection(url, login, password);
85 getConnection(String url, String login, String password) argument
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
H A DFtpURLConnection.java98 String password; field in class:FtpURLConnection
194 if (userInfo != null) { // get the user and password
198 password = null;
201 password = ParseUtil.decode(userInfo.substring(delimiter));
312 password = java.security.AccessController.doPrivileged(
335 ftp.login(user, password == null ? null : password.toCharArray());
339 throw new sun.net.ftp.FtpLoginException("Invalid username/password");
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKeyStoreSpiTest.java93 @Override public void engineSetKeyEntry(String alias, Key key, char[] password,
195 public void engineLoad(InputStream stream, char[] password) {
197 assertNull(password);
/libcore/ojluni/src/main/java/java/sql/
H A DDriverManager.java184 * "password" property should be included
203 * @param password the user's password
209 String user, String password) throws SQLException {
215 if (password != null) {
216 info.put("password", password);
208 getConnection(String url, String user, String password) argument

Completed in 1286 milliseconds

12