/libcore/ojluni/src/main/java/javax/crypto/spec/ |
D | PBEKeySpec.java | 65 private char[] password; field in PBEKeySpec 79 public PBEKeySpec(char[] password) { in PBEKeySpec() argument 80 if ((password == null) || (password.length == 0)) { in PBEKeySpec() 81 this.password = new char[0]; in PBEKeySpec() 83 this.password = (char[])password.clone(); in PBEKeySpec() 107 public PBEKeySpec(char[] password, byte[] salt, int iterationCount, in PBEKeySpec() argument 109 if ((password == null) || (password.length == 0)) { in PBEKeySpec() 110 this.password = new char[0]; in PBEKeySpec() 112 this.password = (char[])password.clone(); in PBEKeySpec() 150 public PBEKeySpec(char[] password, byte[] salt, int iterationCount) { in PBEKeySpec() argument [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | PBEKeySpecTest.java | 51 char[] password = new char[] {'1', '2', '3', '4', '5'}; in testPBEKeySpec1() local 52 PBEKeySpec pbeks = new PBEKeySpec(password); in testPBEKeySpec1() 53 password[0] ++; in testPBEKeySpec1() 56 password[0] == pbeks.getPassword()[0]); in testPBEKeySpec1() 66 char[] password = new char[] {'1', '2', '3', '4', '5'}; in testPBEKeySpec2() local 83 new PBEKeySpec(password, null, iterationCount, keyLength); in testPBEKeySpec2() 92 new PBEKeySpec(password, new byte [0], iterationCount, keyLength); in testPBEKeySpec2() 99 new PBEKeySpec(password, salt, -1, keyLength); in testPBEKeySpec2() 106 new PBEKeySpec(password, salt, iterationCount, -1); in testPBEKeySpec2() 113 new PBEKeySpec(password, salt, 0, keyLength); in testPBEKeySpec2() [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | PasswordAuthentication.java | 43 private char[] password; field in PasswordAuthentication 55 public PasswordAuthentication(String userName, char[] password) { in PasswordAuthentication() argument 57 this.password = password.clone(); in PasswordAuthentication() 79 return password; in getPassword()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | PasswordAuthenticationTest.java | 31 char[] password = new char[] { 'd', 'r', 'o', 'w', 's', 's', 'a', 'p' }; in test_ConstructorLjava_lang_String$C() local 33 PasswordAuthentication pa = new PasswordAuthentication(name, password); in test_ConstructorLjava_lang_String$C() 36 assertTrue("Password was not cloned", returnedPassword != password); in test_ConstructorLjava_lang_String$C() 38 returnedPassword.length == password.length); in test_ConstructorLjava_lang_String$C() 39 for (int counter = password.length - 1; counter >= 0; counter--) in test_ConstructorLjava_lang_String$C() 41 returnedPassword[counter] == password[counter]); in test_ConstructorLjava_lang_String$C()
|
/libcore/ojluni/src/main/java/java/security/ |
D | KeyStoreSpi.java | 74 public abstract Key engineGetKey(String alias, char[] password) in engineGetKey() argument 148 char[] password, in engineSetKeyEntry() argument 295 public abstract void engineStore(OutputStream stream, char[] password) in engineStore() argument 349 public abstract void engineLoad(InputStream stream, char[] password) in engineLoad() argument 390 char[] password; in engineLoad() local 392 password = ((PasswordProtection)protection).getPassword(); in engineLoad() 404 password = callback.getPassword(); in engineLoad() 406 if (password == null) { in engineLoad() 414 engineLoad(null, password); in engineLoad() 468 char[] password = null; in engineGetEntry() local [all …]
|
D | KeyStore.java | 285 private final char[] password; field in KeyStore.PasswordProtection 296 public PasswordProtection(char[] password) { in PasswordProtection() argument 297 this.password = (password == null) ? null : password.clone(); in PasswordProtection() 317 return password; in getPassword() 329 if (password != null) { in destroy() 330 Arrays.fill(password, ' '); in destroy() 818 public final Key getKey(String alias, char[] password) in getKey() argument 825 return keyStoreSpi.engineGetKey(alias, password); in getKey() 929 public final void setKeyEntry(String alias, Key key, char[] password, in setKeyEntry() argument 942 keyStoreSpi.engineSetKeyEntry(alias, key, password, chain); in setKeyEntry() [all …]
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | SecretKeyFactoryTest.java | 127 char[] password = "password".toCharArray(); in test_PBKDF2_rfc3211_64() local 138 test_PBKDF2_UTF8(password, salt, iterations, keyLength, expected); in test_PBKDF2_rfc3211_64() 139 test_PBKDF2_8BIT(password, salt, iterations, keyLength, expected); in test_PBKDF2_rfc3211_64() 148 char[] password = ("All n-entities must communicate with other " in test_PBKDF2_rfc3211_192() local 162 test_PBKDF2_UTF8(password, salt, iterations, keyLength, expected); in test_PBKDF2_rfc3211_192() 163 test_PBKDF2_8BIT(password, salt, iterations, keyLength, expected); in test_PBKDF2_rfc3211_192() 173 char[] password = "\u0141\u0142".toCharArray(); in test_PBKDF2_b8312059() local 189 test_PBKDF2_UTF8(password, salt, iterations, keyLength, expected_utf8); in test_PBKDF2_b8312059() 190 test_PBKDF2_8BIT(password, salt, iterations, keyLength, expected_8bit); in test_PBKDF2_b8312059() 193 private void test_PBKDF2_8BIT(char[] password, byte[] salt, int iterations, int keyLength, in test_PBKDF2_8BIT() argument [all …]
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | TestKeyStoreSpi.java | 108 public Key engineGetKey(String alias, char[] password) in engineGetKey() argument 112 if (password == null) { in engineGetKey() 146 public void engineLoad(InputStream stream, char[] password) in engineLoad() argument 154 if (password == null) { in engineLoad() 156 } else if (password.length == 0) { in engineLoad() 175 char[] password = ((PasswordProtection) pParam).getPassword(); in engineLoad() local 176 if (password == null) { in engineLoad() 197 public void engineSetKeyEntry(String alias, Key key, char[] password, in engineSetKeyEntry() argument 227 public void engineStore(OutputStream stream, char[] password) in engineStore() argument 233 if (password == null) { in engineStore() [all …]
|
D | MyKeyStoreSpi.java | 48 public Key engineGetKey(String alias, char[] password) in engineGetKey() argument 68 public void engineSetKeyEntry(String alias, Key key, char[] password, in engineSetKeyEntry() argument 129 public void engineStore(OutputStream stream, char[] password) in engineStore() argument 142 public void engineLoad(InputStream stream, char[] password) in engineLoad() argument
|
D | MyKeyStore.java | 63 public Key engineGetKey(String alias, char[] password) in engineGetKey() argument 92 public void engineSetKeyEntry(String alias, Key key, char[] password, in engineSetKeyEntry() argument 178 public void engineStore(OutputStream stream, char[] password) in engineStore() argument 201 public void engineLoad(InputStream stream, char[] password) in engineLoad() argument
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldPasswordAuthenticationTest.java | 27 char[] password = "hunter2".toCharArray(); in test_ConstructorLjava_lang_String$C() local 35 PasswordAuthentication pa = new PasswordAuthentication(null, password); in test_ConstructorLjava_lang_String$C() 37 assertEquals(password.length, pa.getPassword().length); in test_ConstructorLjava_lang_String$C()
|
/libcore/ojluni/src/main/java/javax/security/auth/callback/ |
D | PasswordCallback.java | 114 public void setPassword(char[] password) { in setPassword() argument 115 this.inputPassword = (password == null ? null : password.clone()); in setPassword()
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
D | KeyManagerFactorySpiImpl.java | 16 public void engineInit(KeyStore ks, char[] password) in engineInit() argument 20 if (ks == null && password == null) { in engineInit() 28 if (password == null) { in engineInit()
|
D | MyKeyManagerFactorySpi.java | 38 protected void engineInit(KeyStore ks, char[] password) in engineInit() argument 41 if (password == null) { in engineInit()
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | PKIXParametersTest.java | 30 char[] password = "password".toCharArray(); in testKeyStoreConstructor() local 37 ks.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain()); in testKeyStoreConstructor() 44 keyOnly.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain()); in testKeyStoreConstructor()
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | KeyManagerFactory.java | 256 public final void init(KeyStore ks, char[] password) throws in init() argument 259 factorySpi.engineInit(ks, password); in init()
|
D | KeyManagerFactorySpi.java | 54 protected abstract void engineInit(KeyStore ks, char[] password) throws in engineInit() argument
|
/libcore/ojluni/src/main/java/javax/sql/ |
D | ConnectionPoolDataSource.java | 71 PooledConnection getPooledConnection(String user, String password) in getPooledConnection() argument
|
D | DataSource.java | 96 Connection getConnection(String username, String password) in getConnection() argument
|
/libcore/luni/src/test/java/tests/support/ |
D | Support_SQL.java | 86 String password) throws SQLException { in getConnection() argument 88 return DriverManager.getConnection(url, login, password); in getConnection()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStoreSpiTest.java | 99 @Override public void engineSetKeyEntry(String alias, Key key, char[] password, in testKeyStoreSpi01() 200 public void engineLoad(InputStream stream, char[] password) { in test_engineLoadLjava_security_KeyStore_LoadStoreParameter() 202 assertNull(password); in test_engineLoadLjava_security_KeyStore_LoadStoreParameter()
|
D | KeyStore4Test.java | 283 char[] password = "PASSWORD".toCharArray(); in testStoreOutputStreamCharArray() local 286 keyStore.store(os, password); in testStoreOutputStreamCharArray() 451 char[] password = "PASSWORD".toCharArray(); in testLoadInputStreamCharArray() local 453 keyStore.load(is, password); in testLoadInputStreamCharArray() 466 keyStore.load(new ByteArrayInputStream("".getBytes()), password); in testLoadInputStreamCharArray()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/ |
D | FtpURLConnection.java | 95 String password; field in FtpURLConnection 190 password = null; in FtpURLConnection() 193 password = ParseUtil.decode(userInfo.substring(delimiter)); in FtpURLConnection() 290 password = java.security.AccessController.doPrivileged( in connect() 313 ftp.login(user, password.toCharArray()); in connect()
|
/libcore/ojluni/src/main/java/java/sql/ |
D | DriverManager.java | 209 String user, String password) throws SQLException { in getConnection() argument 215 if (password != null) { in getConnection() 216 info.put("password", password); in getConnection()
|
/libcore/ojluni/src/main/java/sun/net/ftp/ |
D | FtpClient.java | 273 …public abstract FtpClient login(String user, char[] password) throws FtpProtocolException, IOExcep… in login() argument 286 …public abstract FtpClient login(String user, char[] password, String account) throws FtpProtocolEx… in login() argument
|