/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | SyntheticPasswordManager.java | 133 public AuthenticationToken authToken; field in SyntheticPasswordManager.AuthenticationResult 466 public void newSidForUser(IGateKeeperService gatekeeper, AuthenticationToken authToken, in newSidForUser() argument 469 authToken.deriveGkPassword()); in newSidForUser() 497 private boolean loadEscrowData(AuthenticationToken authToken, int userId) { in loadEscrowData() argument 498 authToken.E0 = loadState(SP_E0_NAME, DEFAULT_HANDLE, userId); in loadEscrowData() 499 authToken.P1 = loadState(SP_P1_NAME, DEFAULT_HANDLE, userId); in loadEscrowData() 500 return authToken.E0 != null && authToken.P1 != null; in loadEscrowData() 503 private void saveEscrowData(AuthenticationToken authToken, int userId) { in saveEscrowData() argument 504 saveState(SP_E0_NAME, authToken.E0, DEFAULT_HANDLE, userId); in saveEscrowData() 505 saveState(SP_P1_NAME, authToken.P1, DEFAULT_HANDLE, userId); in saveEscrowData() [all …]
|
D | LockSettingsService.java | 612 if (result.authToken != null) { in tryDeriveAuthTokenForUnsecuredPrimaryUser() 614 onAuthTokenKnownForUser(userId, result.authToken); in tryDeriveAuthTokenForUnsecuredPrimaryUser() 2373 response = mSpManager.verifyChallenge(getGateKeeperService(), authResult.authToken, in spBasedDoVerifyCredential() 2386 unlockKeystore(authResult.authToken.deriveKeyStorePassword(), userId); in spBasedDoVerifyCredential() 2388 final byte[] secret = authResult.authToken.deriveDiskEncryptionKey(); in spBasedDoVerifyCredential() 2392 activateEscrowTokens(authResult.authToken, userId); in spBasedDoVerifyCredential() 2401 onAuthTokenKnownForUser(userId, authResult.authToken); in spBasedDoVerifyCredential() 2489 AuthenticationToken auth = authResult.authToken; in spBasedSetLockCredentialInternalLocked() 2564 if (auth.authToken == null) { in getHashFactor() 2568 return auth.authToken.derivePasswordHashFactor(); in getHashFactor() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | SyntheticPasswordTests.java | 72 AuthenticationToken authToken = manager.newSyntheticPasswordAndSid(mGateKeeperService, null, in testPasswordBasedSyntheticPassword() local 75 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, authToken, PASSWORD_QUALITY_ALPHABETIC, in testPasswordBasedSyntheticPassword() 80 assertEquals(result.authToken.deriveKeyStorePassword(), authToken.deriveKeyStorePassword()); in testPasswordBasedSyntheticPassword() 84 assertNull(result.authToken); in testPasswordBasedSyntheticPassword()
|
/frameworks/base/core/java/android/accounts/ |
D | IAccountManager.aidl | 55 void invalidateAuthToken(String accountType, String authToken); in invalidateAuthToken() argument 57 void setAuthToken(in Account account, String authTokenType, String authToken); in setAuthToken() argument
|
D | AccountManager.java | 1318 public void invalidateAuthToken(final String accountType, final String authToken) { 1321 if (authToken != null) { 1322 mService.invalidateAuthToken(accountType, authToken); 1464 public void setAuthToken(Account account, final String authTokenType, final String authToken) { 1468 mService.setAuthToken(account, authTokenType, authToken);
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountsDb.java | 320 Cursor findAuthtokenForAllAccounts(String accountType, String authToken) { in findAuthtokenForAllAccounts() argument 332 new String[]{authToken, accountType}); in findAuthtokenForAllAccounts() 346 final String authToken = cursor.getString(1); in findAuthTokensByAccount() local 347 authTokensForAccount.put(type, authToken); in findAuthTokensByAccount() 369 long insertAuthToken(long accountId, String authTokenType, String authToken) { in insertAuthToken() argument 374 values.put(AUTHTOKENS_AUTHTOKEN, authToken); in insertAuthToken()
|
D | AccountManagerService.java | 2371 public void invalidateAuthToken(String accountType, String authToken) { in invalidateAuthToken() argument 2374 Preconditions.checkNotNull(authToken, "authToken cannot be null"); in invalidateAuthToken() 2388 deletedTokens = invalidateAuthTokenLocked(accounts, accountType, authToken); in invalidateAuthToken() 2400 accounts.accountTokenCaches.remove(accountType, authToken); in invalidateAuthToken() 2409 String authToken) { in invalidateAuthTokenLocked() argument 2412 Cursor cursor = accounts.accountsDb.findAuthtokenForAllAccounts(accountType, authToken); in invalidateAuthTokenLocked() 2449 String authToken) { in saveAuthTokenToDatabase() argument 2464 if (accounts.accountsDb.insertAuthToken(accountId, type, authToken) >= 0) { in saveAuthTokenToDatabase() 2474 writeAuthTokenIntoCacheLocked(accounts, account, type, authToken); in saveAuthTokenToDatabase() 2515 public void setAuthToken(Account account, String authTokenType, String authToken) { in setAuthToken() argument [all …]
|
/frameworks/base/keystore/java/android/security/ |
D | KeyStore.java | 623 public int addAuthToken(byte[] authToken) { in addAuthToken() argument 625 return mBinder.addAuthToken(authToken); in addAuthToken()
|