/frameworks/base/keystore/java/android/security/ |
D | Authorization.java | 50 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()
|
D | KeyStore.java | 128 public int addAuthToken(byte[] authToken) { in addAuthToken() argument 129 return Authorization.addAuthToken(authToken); in addAuthToken()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | SyntheticPasswordManager.java | 150 @Nullable public AuthenticationToken authToken; field in SyntheticPasswordManager.AuthenticationResult 648 public void newSidForUser(IGateKeeperService gatekeeper, AuthenticationToken authToken, in newSidForUser() argument 652 response = gatekeeper.enroll(userId, null, null, authToken.deriveGkPassword()); in newSidForUser() 683 private boolean loadEscrowData(AuthenticationToken authToken, int userId) { in loadEscrowData() argument 686 authToken.setEscrowData(e0, p1); in loadEscrowData() 690 private void saveEscrowData(AuthenticationToken authToken, int userId) { in saveEscrowData() argument 691 saveState(SP_E0_NAME, authToken.mEncryptedEscrowSplit0, DEFAULT_HANDLE, userId); in saveEscrowData() 692 saveState(SP_P1_NAME, authToken.mEscrowSplit1, DEFAULT_HANDLE, userId); in saveEscrowData() 792 LockscreenCredential credential, AuthenticationToken authToken, int userId) { in createPasswordBasedSyntheticPassword() argument 845 savePasswordMetrics(credential, authToken, handle, userId); in createPasswordBasedSyntheticPassword() [all …]
|
D | LockSettingsService.java | 839 if (result.authToken != null) { in tryDeriveAuthTokenForUnsecuredPrimaryUser() 841 onAuthTokenKnownForUser(userId, result.authToken); in tryDeriveAuthTokenForUnsecuredPrimaryUser() 2008 if (authResult.authToken == null) { in isWeakEscrowTokenValid() 2917 authResult.authToken.deriveGkPassword()); in spBasedDoVerifyCredential() 2921 response = mSpManager.verifyChallenge(getGateKeeperService(), authResult.authToken, in spBasedDoVerifyCredential() 2932 onCredentialVerified(authResult.authToken, in spBasedDoVerifyCredential() 2942 authResult.authToken.deriveGkPassword()); in spBasedDoVerifyCredential() 2977 private void onCredentialVerified(AuthenticationToken authToken, PasswordMetrics metrics, in onCredentialVerified() argument 2988 unlockKeystore(authToken.deriveKeyStorePassword(), userId); in onCredentialVerified() 2991 final byte[] secret = authToken.deriveDiskEncryptionKey(); in onCredentialVerified() [all …]
|
/frameworks/base/core/java/android/accounts/ |
D | IAccountManager.aidl | 52 void invalidateAuthToken(String accountType, String authToken); in invalidateAuthToken() argument 54 void setAuthToken(in Account account, String authTokenType, String authToken); in setAuthToken() argument
|
D | AccountManager.java | 1456 public void invalidateAuthToken(final String accountType, final String authToken) { 1459 if (authToken != null) { 1460 mService.invalidateAuthToken(accountType, authToken); 1602 public void setAuthToken(Account account, final String authTokenType, final String authToken) { 1606 mService.setAuthToken(account, authTokenType, authToken);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | SyntheticPasswordTests.java | 85 AuthenticationToken authToken = manager.newSyntheticPasswordAndSid(mGateKeeperService, null, in testPasswordBasedSyntheticPassword() local 88 password, authToken, USER_ID); in testPasswordBasedSyntheticPassword() 92 assertArrayEquals(result.authToken.deriveKeyStorePassword(), in testPasswordBasedSyntheticPassword() 93 authToken.deriveKeyStorePassword()); in testPasswordBasedSyntheticPassword() 97 assertNull(result.authToken); in testPasswordBasedSyntheticPassword()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountsDb.java | 332 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()
|
D | AccountManagerService.java | 2482 public void invalidateAuthToken(String accountType, String authToken) { in invalidateAuthToken() argument 2485 Objects.requireNonNull(authToken, "authToken cannot be null"); in invalidateAuthToken() 2499 deletedTokens = invalidateAuthTokenLocked(accounts, accountType, authToken); in invalidateAuthToken() 2511 accounts.accountTokenCaches.remove(accountType, authToken); in invalidateAuthToken() 2520 String authToken) { in invalidateAuthTokenLocked() argument 2523 Cursor cursor = accounts.accountsDb.findAuthtokenForAllAccounts(accountType, authToken); in invalidateAuthTokenLocked() 2560 String authToken) { in saveAuthTokenToDatabase() argument 2575 if (accounts.accountsDb.insertAuthToken(accountId, type, authToken) >= 0) { in saveAuthTokenToDatabase() 2585 writeAuthTokenIntoCacheLocked(accounts, account, type, authToken); in saveAuthTokenToDatabase() 2626 public void setAuthToken(Account account, String authTokenType, String authToken) { in setAuthToken() argument [all …]
|