/libcore/luni/src/main/java/javax/crypto/spec/ |
H A D | PBEKeySpec.java | 25 * The key specification for a <i>password based encryption</i> key. 32 private char[] password; field in class:PBEKeySpec 38 * Creates a new <code>PBEKeySpec</code> with the specified password. 40 * @param password 41 * the password. 43 public PBEKeySpec(char[] password) { argument 44 if (password == null) { 45 this.password = EmptyArray.CHAR; 47 this.password = new char[password 73 PBEKeySpec(char[] password, byte[] salt, int iterationCount, int keyLength) argument 115 PBEKeySpec(char[] password, byte[] salt, int iterationCount) argument [all...] |
/libcore/luni/src/main/java/java/net/ |
H A D | PasswordAuthentication.java | 22 * password which is used by the {@code Authenticator} class. 30 private char[] password; field in class:PasswordAuthentication 33 * Creates an instance of a password authentication with a specified 34 * username and password. 38 * @param password 39 * the associated password to store. 41 public PasswordAuthentication(String userName, char[] password) { argument 43 this.password = password.clone(); 47 * Gets a clone of the password store [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
H A D | PBEKeySpecTest.java | 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, ne [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldPasswordAuthenticationTest.java | 27 char[] password = "hunter2".toCharArray(); 35 PasswordAuthentication pa = new PasswordAuthentication(null, password); 37 assertEquals(password.length, pa.getPassword().length);
|
/libcore/luni/src/main/java/javax/security/auth/callback/ |
H A D | PasswordCallback.java | 24 * Used in conjunction with a {@link CallbackHandler} to retrieve a password 78 * Sets the password. The {@link CallbackHandler} that performs the actual 79 * provisioning or input of the password needs to call this method to hand 80 * back the password to the security service that requested it. 82 * @param password 83 * the password. A copy of this is stored, so subsequent changes 86 public void setPassword(char[] password) { argument 87 if (password == null) { 88 this.inputPassword = password; 90 inputPassword = new char[password [all...] |
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
H A D | KeyManagerFactorySpiImpl.java | 16 public void engineInit(KeyStore ks, char[] password) argument 20 if (ks == null && password == null) { 28 if (password == null) {
|
H A D | MyKeyManagerFactorySpi.java | 38 protected void engineInit(KeyStore ks, char[] password) argument 41 if (password == null) { 42 throw new KeyStoreException("Incorrect password");
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | TestKeyStoreSpi.java | 108 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 D | MyKeyStoreSpi.java | 48 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 D | MyKeyStore.java | 63 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 D | SecretKeyFactoryTest.java | 51 // PBEKeySpecs password only constructor 127 char[] password = "password".toCharArray(); 138 test_PBKDF2_UTF8(password, salt, iterations, keyLength, expected); 139 test_PBKDF2_8BIT(password, salt, iterations, keyLength, expected); 148 char[] password = ("All n-entities must communicate with other " 162 test_PBKDF2_UTF8(password, salt, iterations, keyLength, expected); 163 test_PBKDF2_8BIT(password, salt, iterations, keyLength, expected); 173 char[] password = "\u0141\u0142".toCharArray(); 189 test_PBKDF2_UTF8(password, sal 193 test_PBKDF2_8BIT(char[] password, byte[] salt, int iterations, int keyLength, byte[] expected) argument 204 test_PBKDF2_UTF8(char[] password, byte[] salt, int iterations, int keyLength, byte[] expected) argument [all...] |
/libcore/crypto/src/main/java/org/conscrypt/ |
H A D | TrustedCertificateKeyStoreSpi.java | 35 @Override public Key engineGetKey(String alias, char[] password) { argument 58 String alias, Key key, char[] password, Certificate[] chain) { 104 @Override public void engineStore(OutputStream stream, char[] password) { argument 108 @Override public void engineLoad(InputStream stream, char[] password) { argument 57 engineSetKeyEntry( String alias, Key key, char[] password, Certificate[] chain) argument
|
H A D | KeyManagerFactoryImpl.java | 43 //password 47 * @see KeyManagerFactorySpi#engineInit(KeyStore ks, char[] password) 50 protected void engineInit(KeyStore ks, char[] password) argument 55 if (password != null) { 56 pwd = password.clone();
|
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | KeyManagerFactorySpi.java | 39 * Initializes this instance with the specified key store and password. 43 * @param password 44 * the key store password. 52 protected abstract void engineInit(KeyStore ks, char[] password) throws KeyStoreException, argument
|
H A D | KeyManagerFactory.java | 185 * Initializes this instance with the specified key store and password. 189 * @param password 190 * the password for the specified key store or {@code null} if no 199 public final void init(KeyStore ks, char[] password) throws KeyStoreException, argument 201 spiImpl.engineInit(ks, password);
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
H A D | PKIXParametersTest.java | 30 char[] password = "password".toCharArray(); 37 ks.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain()); 44 keyOnly.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain());
|
/libcore/luni/src/main/java/java/security/ |
H A D | KeyStore.java | 230 * Returns the key with the given alias, using the password to recover the 235 * @param password 236 * the password used to recover the key. 246 public final Key getKey(String alias, char[] password) argument 252 return implSpi.engineGetKey(alias, password); 307 * Associates the given alias with the key, password and certificate chain. 315 * @param password 316 * the password. 327 public final void setKeyEntry(String alias, Key key, char[] password, argument 337 implSpi.engineSetKeyEntry(alias, key, password, chai 530 store(OutputStream stream, char[] password) argument 587 load(InputStream stream, char[] password) argument 1107 private char[] password; field in class:KeyStore.PasswordProtection 1119 PasswordProtection(char[] password) argument [all...] |
H A D | KeyStoreSpi.java | 40 * Returns the key with the given alias, using the password to recover the 45 * @param password 46 * the password used to recover the key. 54 public abstract Key engineGetKey(String alias, char[] password) argument 88 * Associates the given alias with the key, password and certificate chain. 96 * @param password 97 * the password. 108 char[] password, Certificate[] chain) throws KeyStoreException; 219 * specified password. 223 * @param password 107 engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument 233 engineStore(OutputStream stream, char[] password) argument 276 engineLoad(InputStream stream, char[] password) argument [all...] |
/libcore/luni/src/main/java/java/io/ |
H A D | Console.java | 132 * Reads a password from the console. The password will not be echoed to the display. 134 * @return a character array containing the password, or null at EOF. 140 String password = readLine(); 142 return (password == null) ? null : password.toCharArray(); 159 * Reads a password from the console. The password will not be echoed to the display. 167 * @return a character array containing the password, or null at EOF.
|
/libcore/luni/src/main/java/java/sql/ |
H A D | DriverManager.java | 156 * "password"} should be passed, with appropriate settings for 157 * the user ID and its corresponding password to get access to 196 * @param password 197 * a password for the user ID to login to the database. 204 public static Connection getConnection(String url, String user, String password) argument 210 if (password != null) { 211 theProperties.setProperty("password", password);
|
/libcore/luni/src/test/java/tests/support/ |
H A D | Support_SQL.java | 86 String password) throws SQLException { 88 return DriverManager.getConnection(url, login, password); 85 getConnection(String url, String login, String password) argument
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | KeyStoreSpiTest.java | 99 @Override public void engineSetKeyEntry(String alias, Key key, char[] password, 200 public void engineLoad(InputStream stream, char[] password) { 202 assertNull(password);
|
H A D | KeyStoreTest.java | 238 char[] password = new char[] {'a', 'b', 'c'}; 239 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(password); 240 assertNotSame(pp.getPassword(), password);
|
H A D | KeyStore4Test.java | 283 char[] password = "PASSWORD".toCharArray(); 286 keyStore.store(os, password); 451 char[] password = "PASSWORD".toCharArray(); 453 keyStore.load(is, password); 466 keyStore.load(new ByteArrayInputStream("".getBytes()), password);
|
/libcore/luni/src/main/java/libcore/net/url/ |
H A D | FtpURLConnection.java | 89 private String password = ""; field in class:FtpURLConnection 114 password = parse.substring(split + 1); 386 write("PASS " + password + "\r\n");
|