Home
last modified time | relevance | path

Searched refs:password (Results 1 – 25 of 36) sorted by relevance

12

/libcore/ojluni/src/main/java/javax/crypto/spec/
DPBEKeySpec.java65 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 = 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 = 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/
DPBEKeySpecTest.java51 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/security/
DKeyStoreSpi.java75 public abstract Key engineGetKey(String alias, char[] password) in engineGetKey() argument
149 char[] password, in engineSetKeyEntry() argument
296 public abstract void engineStore(OutputStream stream, char[] password) in engineStore() argument
350 public abstract void engineLoad(InputStream stream, char[] password) in engineLoad() argument
391 char[] password; in engineLoad() local
393 password = ((PasswordProtection)protection).getPassword(); in engineLoad()
405 password = callback.getPassword(); in engineLoad()
407 if (password == null) { in engineLoad()
415 engineLoad(null, password); in engineLoad()
476 char[] password = null; in engineGetEntry() local
[all …]
DKeyStore.java284 private final char[] password; field in KeyStore.PasswordProtection
297 public PasswordProtection(char[] password) { in PasswordProtection() argument
298 this.password = (password == null) ? null : password.clone(); in PasswordProtection()
325 public PasswordProtection(char[] password, String protectionAlgorithm, in PasswordProtection() argument
330 this.password = (password == null) ? null : password.clone(); in PasswordProtection()
384 return password; in getPassword()
395 if (password != null) { in destroy()
396 Arrays.fill(password, ' '); in destroy()
1055 public final Key getKey(String alias, char[] password) in getKey() argument
1062 return keyStoreSpi.engineGetKey(alias, password); in getKey()
[all …]
/libcore/ojluni/src/main/java/java/net/
DPasswordAuthentication.java43 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()
DSocksSocketImpl.java156 String password = null; in authenticate() local
168 password = new String(pw.getPassword()); in authenticate()
182 if (password != null) { in authenticate()
183 out.write(password.length()); in authenticate()
185 out.write(password.getBytes("ISO-8859-1")); in authenticate()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DPasswordAuthenticationTest.java31 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/
DSecretKeyFactoryTest.java129 char[] password = "password".toCharArray(); in test_PBKDF2_rfc3211_64() local
140 test_PBKDF2_UTF8(password, salt, iterations, keyLength, expected); in test_PBKDF2_rfc3211_64()
141 test_PBKDF2_8BIT(password, salt, iterations, keyLength, expected); in test_PBKDF2_rfc3211_64()
150 char[] password = ("All n-entities must communicate with other " in test_PBKDF2_rfc3211_192() local
164 test_PBKDF2_UTF8(password, salt, iterations, keyLength, expected); in test_PBKDF2_rfc3211_192()
165 test_PBKDF2_8BIT(password, salt, iterations, keyLength, expected); in test_PBKDF2_rfc3211_192()
175 char[] password = "\u0141\u0142".toCharArray(); in test_PBKDF2_b8312059() local
191 test_PBKDF2_UTF8(password, salt, iterations, keyLength, expected_utf8); in test_PBKDF2_b8312059()
192 test_PBKDF2_8BIT(password, salt, iterations, keyLength, expected_8bit); in test_PBKDF2_b8312059()
195 private void test_PBKDF2_8BIT(char[] password, byte[] salt, int iterations, int keyLength, in test_PBKDF2_8BIT() argument
[all …]
DMacTest.java122 char[] password = "password".toCharArray(); in test_PBEWITHHMACSHA_Variants() local
130 PBEKeySpec pbeKeySpec = new PBEKeySpec(password, in test_PBEWITHHMACSHA_Variants()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestKeyStoreSpi.java108 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 …]
DMyKeyStoreSpi.java48 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
DMyKeyStore.java63 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/
DOldPasswordAuthenticationTest.java27 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/
DPasswordCallback.java114 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/
DKeyManagerFactorySpiImpl.java16 public void engineInit(KeyStore ks, char[] password) in engineInit() argument
20 if (ks == null && password == null) { in engineInit()
28 if (password == null) { in engineInit()
DMyKeyManagerFactorySpi.java38 protected void engineInit(KeyStore ks, char[] password) in engineInit() argument
41 if (password == null) { in engineInit()
/libcore/ojluni/annotations/hiddenapi/java/security/
DKeyStore.java69 public final java.security.Key getKey(java.lang.String alias, char[] password) in getKey() argument
93 char[] password, in setKeyEntry() argument
143 public final void store(java.io.OutputStream stream, char[] password) in store() argument
155 public final void load(java.io.InputStream stream, char[] password) in load() argument
336 public PasswordProtection(char[] password) { in PasswordProtection() argument
341 char[] password, in PasswordProtection() argument
369 private final char[] password; field in KeyStore.PasswordProtection
372 password = new char[0];
/libcore/ojluni/src/main/java/javax/net/ssl/
DKeyManagerFactory.java269 public final void init(KeyStore ks, char[] password) throws in init() argument
272 factorySpi.engineInit(ks, password); in init()
DKeyManagerFactorySpi.java54 protected abstract void engineInit(KeyStore ks, char[] password) throws in engineInit() argument
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
DFtpURLConnection.java98 String password; field in FtpURLConnection
198 password = null; in FtpURLConnection()
201 password = ParseUtil.decode(userInfo.substring(delimiter)); in FtpURLConnection()
312 password = java.security.AccessController.doPrivileged( in connect()
335 ftp.login(user, password == null ? null : password.toCharArray()); in connect()
/libcore/ojluni/src/main/java/javax/sql/
DConnectionPoolDataSource.java71 PooledConnection getPooledConnection(String user, String password) in getPooledConnection() argument
DDataSource.java96 Connection getConnection(String username, String password) in getConnection() argument
/libcore/luni/src/test/java/tests/support/
DSupport_SQL.java86 String password) throws SQLException { in getConnection() argument
88 return DriverManager.getConnection(url, login, password); in getConnection()
/libcore/luni/src/test/java/libcore/java/security/cert/
DPKIXParametersTest.java62 char[] password = "password".toCharArray(); in keyStoreConstructor() local
69 ks.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain()); in keyStoreConstructor()
76 keyOnly.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain()); in keyStoreConstructor()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStoreSpiTest.java93 @Override public void engineSetKeyEntry(String alias, Key key, char[] password, in testKeyStoreSpi01()
195 public void engineLoad(InputStream stream, char[] password) { in test_engineLoadLjava_security_KeyStore_LoadStoreParameter()
197 assertNull(password); in test_engineLoadLjava_security_KeyStore_LoadStoreParameter()

12