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

12

/libcore/luni/src/main/java/javax/crypto/spec/
H A DPBEKeySpec.java25 * 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 DPasswordAuthentication.java22 * 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 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/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);
/libcore/luni/src/main/java/javax/security/auth/callback/
H A DPasswordCallback.java24 * 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 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/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/main/java/javax/net/ssl/
H A DKeyManagerFactorySpi.java39 * 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 DKeyManagerFactory.java181 * Initializes this instance with the specified key store and password.
185 * @param password
186 * the password for the specified key store or {@code null} if no
195 public final void init(KeyStore ks, char[] password) throws KeyStoreException, argument
197 spiImpl.engineInit(ks, password);
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DTrustedCertificateKeyStoreSpi.java35 @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 DKeyManagerFactoryImpl.java43 //password
48 * password)
51 public void engineInit(KeyStore ks, char[] password) argument
56 if (password != null) {
57 pwd = password.clone();
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DPKIXParametersTest.java30 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 DKeyStore.java230 * 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 DKeyStoreSpi.java40 * 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/test/java/libcore/javax/crypto/
H A DSecretKeyFactoryTest.java50 // PBEKeySpecs password only constructor
125 char[] password = "password".toCharArray();
136 test_PBKDF2(password, salt, iterations, keyLength, expected);
145 char[] password = ("All n-entities must communicate with other "
159 test_PBKDF2(password, salt, iterations, keyLength, expected);
162 private void test_PBKDF2(char[] password, byte[] salt, int iterations, int keyLength, argument
165 KeySpec ks = new PBEKeySpec(password, salt, iterations, keyLength);
/libcore/luni/src/main/java/java/io/
H A DConsole.java132 * 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 DDriverManager.java152 * "password"} should be passed, with appropriate settings for
153 * the user ID and its corresponding password to get access to
192 * @param password
193 * a password for the user ID to login to the database.
200 public static Connection getConnection(String url, String user, String password) argument
206 if (password != null) {
207 theProperties.setProperty("password", password);
/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/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKeyStoreSpiTest.java99 @Override public void engineSetKeyEntry(String alias, Key key, char[] password,
200 public void engineLoad(InputStream stream, char[] password) {
202 assertNull(password);
H A DKeyStoreTest.java238 char[] password = new char[] {'a', 'b', 'c'};
239 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(password);
240 assertNotSame(pp.getPassword(), password);
H A DKeyStore4Test.java283 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 DFtpURLConnection.java89 private String password = ""; field in class:FtpURLConnection
114 password = parse.substring(split + 1);
386 write("PASS " + password + "\r\n");

Completed in 539 milliseconds

12