/libcore/luni/src/main/java/javax/crypto/spec/ |
D | PBEKeySpec.java | 32 private char[] password; field in PBEKeySpec 43 public PBEKeySpec(char[] password) { in PBEKeySpec() argument 44 if (password == null) { in PBEKeySpec() 45 this.password = EmptyArray.CHAR; in PBEKeySpec() 47 this.password = new char[password.length]; in PBEKeySpec() 48 System.arraycopy(password, 0, this.password, 0, password.length); in PBEKeySpec() 73 public PBEKeySpec(char[] password, byte[] salt, int iterationCount, in PBEKeySpec() argument 88 if (password == null) { in PBEKeySpec() 89 this.password = EmptyArray.CHAR; in PBEKeySpec() 91 this.password = new char[password.length]; in PBEKeySpec() [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/luni/src/main/java/java/net/ |
D | PasswordAuthentication.java | 30 private char[] password; field in PasswordAuthentication 41 public PasswordAuthentication(String userName, char[] password) { in PasswordAuthentication() argument 43 this.password = password.clone(); in PasswordAuthentication() 54 return password.clone(); 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/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/main/java/javax/security/auth/callback/ |
D | PasswordCallback.java | 86 public void setPassword(char[] password) { in setPassword() argument 87 if (password == null) { in setPassword() 88 this.inputPassword = password; in setPassword() 90 inputPassword = new char[password.length]; in setPassword() 91 System.arraycopy(password, 0, inputPassword, 0, inputPassword.length); in setPassword()
|
/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/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/main/java/java/security/ |
D | KeyStore.java | 247 public final Key getKey(String alias, char[] password) in getKey() argument 253 return implSpi.engineGetKey(alias, password); in getKey() 328 public final void setKeyEntry(String alias, Key key, char[] password, in setKeyEntry() argument 338 implSpi.engineSetKeyEntry(alias, key, password, chain); in setKeyEntry() 531 public final void store(OutputStream stream, char[] password) in store() argument 538 implSpi.engineStore(stream, password); in store() 588 public final void load(InputStream stream, char[] password) in load() argument 590 implSpi.engineLoad(stream, password); in load() 1108 private char[] password; field in KeyStore.PasswordProtection 1120 public PasswordProtection(char[] password) { in PasswordProtection() argument [all …]
|
D | KeyStoreSpi.java | 54 public abstract Key engineGetKey(String alias, char[] password) in engineGetKey() argument 108 char[] password, Certificate[] chain) throws KeyStoreException; in engineSetKeyEntry() argument 233 public abstract void engineStore(OutputStream stream, char[] password) in engineStore() argument 276 public abstract void engineLoad(InputStream stream, char[] password) in engineLoad() argument
|
/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/luni/src/main/java/java/sql/ |
D | DriverManager.java | 204 public static Connection getConnection(String url, String user, String password) in getConnection() argument 210 if (password != null) { in getConnection() 211 theProperties.setProperty("password", password); in getConnection()
|
/libcore/luni/src/main/java/javax/net/ssl/ |
D | KeyManagerFactorySpi.java | 52 protected abstract void engineInit(KeyStore ks, char[] password) throws KeyStoreException, in engineInit() argument
|
D | KeyManagerFactory.java | 199 public final void init(KeyStore ks, char[] password) throws KeyStoreException, in init() argument 201 spiImpl.engineInit(ks, password); in init()
|
/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()
|
D | KeyStoreTest.java | 235 char[] password = new char[] {'a', 'b', 'c'}; in testKeyStorePPGetPassword() local 236 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(password); in testKeyStorePPGetPassword() 237 assertNotSame(pp.getPassword(), password); in testKeyStorePPGetPassword() local
|
/libcore/luni/src/main/java/libcore/net/url/ |
D | FtpURLConnection.java | 89 private String password = ""; field in FtpURLConnection 114 password = parse.substring(split + 1); in FtpURLConnection() 386 write("PASS " + password + "\r\n"); in login()
|
/libcore/luni/src/main/java/javax/sql/ |
D | RowSet.java | 1430 public void setPassword(String password) throws SQLException; in setPassword() argument
|
/libcore/support/src/test/java/libcore/java/security/ |
D | TestKeyStore.java | 716 PasswordProtection password = new PasswordProtection(keyPassword); in privateKey() local 721 PrivateKeyEntry privateKey = (PrivateKeyEntry) keyStore.getEntry(alias, password); in privateKey()
|