Home
last modified time | relevance | path

Searched refs:authToken (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/keystore/java/android/security/
DAuthorization.java50 public static int addAuthToken(@NonNull HardwareAuthToken authToken) { in addAuthToken() argument
52 getService().addAuthToken(authToken); in addAuthToken()
67 public static int addAuthToken(@NonNull byte[] authToken) { in addAuthToken() argument
68 return addAuthToken(AuthTokenUtils.toHardwareAuthToken(authToken)); in addAuthToken()
DKeyStore.java138 public int addAuthToken(byte[] authToken) { in addAuthToken() argument
139 return Authorization.addAuthToken(authToken); in addAuthToken()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java144 @Nullable public AuthenticationToken authToken; field in SyntheticPasswordManager.AuthenticationResult
595 public void newSidForUser(IGateKeeperService gatekeeper, AuthenticationToken authToken, in newSidForUser() argument
599 response = gatekeeper.enroll(userId, null, null, authToken.deriveGkPassword()); in newSidForUser()
630 private boolean loadEscrowData(AuthenticationToken authToken, int userId) { in loadEscrowData() argument
633 authToken.setEscrowData(e0, p1); in loadEscrowData()
637 private void saveEscrowData(AuthenticationToken authToken, int userId) { in saveEscrowData() argument
638 saveState(SP_E0_NAME, authToken.mEncryptedEscrowSplit0, DEFAULT_HANDLE, userId); in saveEscrowData()
639 saveState(SP_P1_NAME, authToken.mEscrowSplit1, DEFAULT_HANDLE, userId); in saveEscrowData()
739 LockscreenCredential credential, AuthenticationToken authToken, int userId) { in createPasswordBasedSyntheticPassword() argument
792 savePasswordMetrics(credential, authToken, handle, userId); in createPasswordBasedSyntheticPassword()
[all …]
DLockSettingsService.java790 if (result.authToken != null) { in tryDeriveAuthTokenForUnsecuredPrimaryUser()
792 onAuthTokenKnownForUser(userId, result.authToken); in tryDeriveAuthTokenForUnsecuredPrimaryUser()
2926 authResult.authToken.deriveGkPassword()); in spBasedDoVerifyCredential()
2930 response = mSpManager.verifyChallenge(getGateKeeperService(), authResult.authToken, in spBasedDoVerifyCredential()
2941 onCredentialVerified(authResult.authToken, in spBasedDoVerifyCredential()
2951 authResult.authToken.deriveGkPassword()); in spBasedDoVerifyCredential()
2986 private void onCredentialVerified(AuthenticationToken authToken, PasswordMetrics metrics, in onCredentialVerified() argument
2997 unlockKeystore(authToken.deriveKeyStorePassword(), userId); in onCredentialVerified()
3000 final byte[] secret = authToken.deriveDiskEncryptionKey(); in onCredentialVerified()
3004 activateEscrowTokens(authToken, userId); in onCredentialVerified()
[all …]
/frameworks/base/core/java/android/accounts/
DIAccountManager.aidl52 void invalidateAuthToken(String accountType, String authToken); in invalidateAuthToken() argument
54 void setAuthToken(in Account account, String authTokenType, String authToken); in setAuthToken() argument
DAccountManager.java1449 public void invalidateAuthToken(final String accountType, final String authToken) {
1452 if (authToken != null) {
1453 mService.invalidateAuthToken(accountType, authToken);
1595 public void setAuthToken(Account account, final String authTokenType, final String authToken) {
1599 mService.setAuthToken(account, authTokenType, authToken);
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DSyntheticPasswordTests.java78 AuthenticationToken authToken = manager.newSyntheticPasswordAndSid(mGateKeeperService, null, in testPasswordBasedSyntheticPassword() local
81 password, authToken, USER_ID); in testPasswordBasedSyntheticPassword()
85 assertArrayEquals(result.authToken.deriveKeyStorePassword(), in testPasswordBasedSyntheticPassword()
86 authToken.deriveKeyStorePassword()); in testPasswordBasedSyntheticPassword()
90 assertNull(result.authToken); in testPasswordBasedSyntheticPassword()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountsDb.java332 Cursor findAuthtokenForAllAccounts(String accountType, String authToken) { in findAuthtokenForAllAccounts() argument
344 new String[]{authToken, accountType}); in findAuthtokenForAllAccounts()
358 final String authToken = cursor.getString(1); in findAuthTokensByAccount() local
359 authTokensForAccount.put(type, authToken); in findAuthTokensByAccount()
381 long insertAuthToken(long accountId, String authTokenType, String authToken) { in insertAuthToken() argument
386 values.put(AUTHTOKENS_AUTHTOKEN, authToken); in insertAuthToken()
DAccountManagerService.java2463 public void invalidateAuthToken(String accountType, String authToken) { in invalidateAuthToken() argument
2466 Objects.requireNonNull(authToken, "authToken cannot be null"); in invalidateAuthToken()
2480 deletedTokens = invalidateAuthTokenLocked(accounts, accountType, authToken); in invalidateAuthToken()
2492 accounts.accountTokenCaches.remove(accountType, authToken); in invalidateAuthToken()
2501 String authToken) { in invalidateAuthTokenLocked() argument
2504 Cursor cursor = accounts.accountsDb.findAuthtokenForAllAccounts(accountType, authToken); in invalidateAuthTokenLocked()
2541 String authToken) { in saveAuthTokenToDatabase() argument
2556 if (accounts.accountsDb.insertAuthToken(accountId, type, authToken) >= 0) { in saveAuthTokenToDatabase()
2566 writeAuthTokenIntoCacheLocked(accounts, account, type, authToken); in saveAuthTokenToDatabase()
2607 public void setAuthToken(Account account, String authTokenType, String authToken) { in setAuthToken() argument
[all …]