Home
last modified time | relevance | path

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

1234

/frameworks/base/keystore/tests/src/android/security/
DKeyStoreTest.java138 assertTrue(mKeyStore.password(TEST_PASSWD)); in testPassword()
144 mKeyStore.password(TEST_PASSWD); in testGet()
156 mKeyStore.password(TEST_PASSWD); in testPut()
167 mKeyStore.password(TEST_PASSWD); in testPut_grantedUid_Wifi()
178 mKeyStore.password(TEST_PASSWD); in testPut_ungrantedUid_Bluetooth()
188 mKeyStore.password(TEST_I18N_KEY); in testI18n()
196 mKeyStore.password(TEST_PASSWD); in testDelete()
208 mKeyStore.password(TEST_PASSWD); in testDelete_grantedUid_Wifi()
220 mKeyStore.password(TEST_PASSWD); in testDelete_ungrantedUid_Bluetooth()
233 assertTrue(mKeyStore.password(TEST_PASSWD)); in testContains()
[all …]
/frameworks/base/obex/javax/obex/
DPasswordAuthentication.java53 public PasswordAuthentication(final byte[] userName, final byte[] password) { in PasswordAuthentication() argument
59 mPassword = new byte[password.length]; in PasswordAuthentication()
60 System.arraycopy(password, 0, mPassword, 0, password.length); in PasswordAuthentication()
DObexSession.java138 byte[] password = result.getPassword(); in handleAuthChall()
139 if (password == null) { in handleAuthChall()
163 byte[] digest = new byte[challenge.length + password.length + 1]; in handleAuthChall()
167 System.arraycopy(password, 0, digest, challenge.length + 1, password.length); in handleAuthChall()
/frameworks/base/docs/html/guide/topics/admin/
Ddevice-admin.jd47 enforce password policies — including alphanumeric passwords or numeric
95 password that violates the guidelines), it is up to the application to decide
129 <td>Minimum password length</td>
130 <td>Set the required number of characters for the password. For example, you
133 <td>Alphanumeric password required</td>
140 <td>Complex password required</td>
146 <td>Minimum letters required in password</td> <td>The minimum number of
147 letters required in the password for all admins or a particular one. Introduced in Android 3.0.</td…
152 <td>Minimum lowercase letters required in password</td>
154 letters required in the password for all admins or a particular one. Introduced in Android 3.0.</td…
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java306 public boolean checkPassword(String password) { in checkPassword() argument
309 return getLockSettings().checkPassword(password, userId); in checkPassword()
322 public boolean checkPasswordHistory(String password) { in checkPasswordHistory() argument
323 String passwordHashString = new String(passwordToHash(password)); in checkPasswordHistory()
544 static public int computePasswordQuality(String password) { in computePasswordQuality() argument
547 final int len = password.length(); in computePasswordQuality()
549 if (Character.isDigit(password.charAt(i))) { in computePasswordQuality()
569 private void updateEncryptionPassword(String password) { in updateEncryptionPassword() argument
584 mountService.changeEncryptionPassword(password); in updateEncryptionPassword()
597 public void saveLockPassword(String password, int quality) { in saveLockPassword() argument
[all …]
DILockSettings.aidl29 void setLockPassword(in String password, int userId); in setLockPassword() argument
30 boolean checkPassword(in String password, int userId); in checkPassword() argument
/frameworks/base/core/java/android/net/http/
DRequestHandle.java224 public void setupBasicAuthResponse(boolean isProxy, String username, String password) { in setupBasicAuthResponse() argument
225 String response = computeBasicAuthResponse(username, password); in setupBasicAuthResponse()
238 String password, in setupDigestAuthResponse() argument
246 username, password, realm, nonce, QOP, algorithm, opaque); in setupDigestAuthResponse()
275 public static String computeBasicAuthResponse(String username, String password) { in computeBasicAuthResponse() argument
277 Assert.assertNotNull(password); in computeBasicAuthResponse()
280 return new String(Base64.encodeBase64((username + ':' + password).getBytes())); in computeBasicAuthResponse()
297 String password, in computeDigestAuthResponse() argument
305 Assert.assertNotNull(password); in computeDigestAuthResponse()
308 String A1 = username + ":" + realm + ":" + password; in computeDigestAuthResponse()
/frameworks/base/docs/html/training/enterprise/
Ddevice-management-policy.jd41 such that it ensures a screen-lock password of sufficient strength is set up before displaying
48 cover screen-lock password strength, expiration timeout, encryption, etc.</p>
55 android.app.admin.DevicePolicyManager} (defining minimum password length and minimum number of
63 <p>The following snippet declares the limit password policy in <code>res/xml/device_admin.xml</code…
68 &lt;limit-password /&gt;
105 // Deletes previously stored password policy.
183 to the actual screen-lock password used, through the Device Policy Manager API it can determine
184 whether the existing password satisfies the required policy. If it turns out that the existing
185 screen-lock password is not sufficient, the device administration API does not automatically take
187 password-change screen in the Settings app. For example:</p>
[all …]
/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java54 public String password = ""; // 4 field in VpnProfile
79 password = in.readString(); in VpnProfile()
100 out.writeString(password); in writeToParcel()
134 profile.password = values[4]; in decode()
146 profile.saveLogin = !profile.username.isEmpty() || !profile.password.isEmpty(); in decode()
159 builder.append('\0').append(saveLogin ? password : ""); in encode()
/frameworks/base/keystore/java/android/security/
DKeyStore.java170 public boolean password(String password) { in password() argument
172 return mBinder.password(password) == NO_ERROR; in password()
188 public boolean unlock(String password) { in unlock() argument
190 mError = mBinder.unlock(password); in unlock()
DAndroidKeyStore.java78 public Key engineGetKey(String alias, char[] password) throws NoSuchAlgorithmException, in engineGetKey() argument
198 public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) in engineSetKeyEntry() argument
200 if ((password != null) && (password.length > 0)) { in engineSetKeyEntry()
510 public void engineStore(OutputStream stream, char[] password) throws IOException, in engineStore() argument
516 public void engineLoad(InputStream stream, char[] password) throws IOException, in engineLoad() argument
522 if (password != null) { in engineLoad()
/frameworks/base/services/java/com/android/server/
DLockSettingsService.java262 private void maybeUpdateKeystore(String password, int userId) { in maybeUpdateKeystore() argument
267 if (TextUtils.isEmpty(password) && keyStore.isEmpty()) { in maybeUpdateKeystore()
271 keyStore.password(password); in maybeUpdateKeystore()
288 public void setLockPassword(String password, int userId) throws RemoteException { in setLockPassword() argument
291 maybeUpdateKeystore(password, userId); in setLockPassword()
293 writeFile(getLockPasswordFilename(userId), mLockPatternUtils.passwordToHash(password)); in setLockPassword()
325 public boolean checkPassword(String password, int userId) throws RemoteException { in checkPassword() argument
338 final byte[] hash = mLockPatternUtils.passwordToHash(password); in checkPassword()
340 if (matched && !TextUtils.isEmpty(password)) { in checkPassword()
341 maybeUpdateKeystore(password, userId); in checkPassword()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnSetting.java37 public final String password; field in ApnSetting
60 String user, String password, int authType, String[] types, in ApnSetting() argument
72 this.password = password; in ApnSetting()
/frameworks/base/core/java/android/os/storage/
DIMountService.java611 public int decryptStorage(String password) throws RemoteException { in decryptStorage() argument
617 _data.writeString(password); in decryptStorage()
628 public int encryptStorage(String password) throws RemoteException { in encryptStorage() argument
634 _data.writeString(password); in encryptStorage()
645 public int changeEncryptionPassword(String password) throws RemoteException { in changeEncryptionPassword() argument
651 _data.writeString(password); in changeEncryptionPassword()
663 public int verifyEncryptionPassword(String password) throws RemoteException { in verifyEncryptionPassword() argument
669 _data.writeString(password); in verifyEncryptionPassword()
1117 String password = data.readString(); in onTransact() local
1118 int result = decryptStorage(password); in onTransact()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccCard.java152 String password, Message onComplete); in setIccLockEnabled() argument
166 String password, Message onComplete); in setIccFdnEnabled() argument
DCommandsInterface.java1236 void queryFacilityLock (String facility, String password, int serviceClass, in queryFacilityLock() argument
1251 void queryFacilityLockForApp(String facility, String password, int serviceClass, String appId, in queryFacilityLockForApp() argument
1261 void setFacilityLock (String facility, boolean lockState, String password, in setFacilityLock() argument
1274 void setFacilityLockForApp(String facility, boolean lockState, String password, in setFacilityLockForApp() argument
1558 String apn, String user, String password, String authType, in setupDataCall() argument
1696 String password, Message result); in setInitialAttachApn() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipCommandInterface.java255 String apn, String user, String password, String authType, in setupDataCall() argument
348 public void queryFacilityLock(String facility, String password, in queryFacilityLock() argument
353 public void queryFacilityLockForApp(String facility, String password, in queryFacilityLockForApp() argument
359 String password, int serviceClass, Message response) { in setFacilityLock() argument
364 String password, int serviceClass, String appId, Message response) { in setFacilityLockForApp() argument
556 String password, Message result) { in setInitialAttachApn() argument
/frameworks/base/tools/layoutlib/bridge/src/android/webkit/
DWebView.java82 public void savePassword(String host, String username, String password) { in savePassword() argument
86 String username, String password) { in setHttpAuthUsernamePassword() argument
/frameworks/base/tests/LegacyRestoreTest/
DREADME4 to the PBKDF2 implementation. The archive's encryption password, entered on-screen,
9 reporting an invalid password in logcat. This is the situation reported in bug
/frameworks/base/core/java/android/security/
DIKeystoreService.java180 public int password(String password) throws RemoteException { in password() method in IKeystoreService.Stub.Proxy
186 _data.writeString(password); in password()
213 public int unlock(String password) throws RemoteException { in unlock() argument
219 _data.writeString(password); in unlock()
567 public int password(String password) throws RemoteException; in password() argument
571 public int unlock(String password) throws RemoteException; in unlock() argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DApnSettingTest.java38 assertEquals(a1.password, a2.password); in assertApnSettingEqual()
/frameworks/base/include/storage/
DIMountService.h72 virtual int32_t decryptStorage(const String16& password) = 0;
73 virtual int32_t encryptStorage(const String16& password) = 0;
/frameworks/base/core/java/android/webkit/
DHttpAuthHandler.java60 public void proceed(String username, String password) { in proceed() argument
/frameworks/base/core/java/android/accounts/
DIAccountManager.aidl39 boolean addAccountExplicitly(in Account account, String password, in Bundle extras); in addAccountExplicitly() argument
44 void setPassword(in Account account, String password); in setPassword() argument
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DAccessPointParserHelper.java105 boolean password = false;
135 password = true;
224 if (password) {
248 password = false;

1234