/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainService.java | 114 for (String alias: keyStoreAliases) { in getExistingKeyAliases() 115 Log.w(TAG, "Got Alias from KeyStore: " + alias); in getExistingKeyAliases() 116 String unPrefixedAlias = alias.replaceFirst("^" + Credentials.USER_PRIVATE_KEY, ""); in getExistingKeyAliases() 131 public String requestPrivateKey(String alias) { 132 if (!hasGrant(alias)) { 136 final String keystoreAlias = Credentials.USER_PRIVATE_KEY + alias; 141 @Override public byte[] getCertificate(String alias) { 142 if (!hasGrant(alias)) { 145 return mKeyStore.get(Credentials.USER_CERTIFICATE + alias); 148 @Override public byte[] getCaCertificates(String alias) { [all …]
|
D | KeyChainActivity.java | 111 public boolean isUserSelectable(String alias) { in chooseCertificate() 114 return connection.getService().isUserSelectable(alias); in chooseCertificate() 142 @Override public void alias(String alias) { in chooseCertificate() 144 if (alias != null) { in chooseCertificate() 145 finishWithAliasFromPolicy(alias); in chooseCertificate() 180 String alias = getIntent().getStringExtra(KeyChain.EXTRA_ALIAS); in chooseCertificate() local 182 devicePolicyManager.choosePrivateKeyAlias(mSenderUid, uri, alias, callback); in chooseCertificate() 187 callback.alias(null); in chooseCertificate() 216 public boolean shouldPresentCertificate(String alias) { in shouldPresentCertificate() argument 217 X509Certificate cert = loadCertificate(mKeyStore, alias); in shouldPresentCertificate() [all …]
|
/packages/apps/KeyChain/src/com/android/keychain/internal/ |
D | GrantsDatabase.java | 106 for (String alias: mKeysProvider.getExistingKeyAliases()) { in markExistingKeysAsSelectable() 107 Log.w(TAG, "Existing alias: " + alias); in markExistingKeysAsSelectable() 108 if (!hasEntryInUserSelectableTable(db, alias)) { in markExistingKeysAsSelectable() 109 Log.w(TAG, "Marking as selectable: " + alias); in markExistingKeysAsSelectable() 110 markKeyAsSelectable(db, alias); in markExistingKeysAsSelectable() 116 private void markKeyAsSelectable(final SQLiteDatabase db, final String alias) { in markKeyAsSelectable() argument 118 values.put(GRANTS_ALIAS, alias); in markKeyAsSelectable() 123 private boolean hasEntryInUserSelectableTable(final SQLiteDatabase db, final String alias) { in hasEntryInUserSelectableTable() argument 128 new String[] {alias}); in hasEntryInUserSelectableTable() 157 boolean hasGrantInternal(final SQLiteDatabase db, final int uid, final String alias) { in hasGrantInternal() argument [all …]
|
D | KeyInfoProvider.java | 13 public boolean isUserSelectable(String alias); in isUserSelectable() argument
|
/packages/apps/KeyChain/robotests/src/com/android/keychain/internal/ |
D | GrantsDatabaseTest.java | 226 public void insertIntoGrantsTable(final SQLiteDatabase db, String alias, int uid) { 228 values.put(GRANTS_ALIAS, alias); 234 final SQLiteDatabase db, String alias, boolean isSelectable) { 236 values.put(GRANTS_ALIAS, alias); 271 for (String alias : aliases) { 272 v1DBHelper.insertIntoGrantsTable(db, alias, 123456); 278 for (String alias : aliases) { 279 Assert.assertTrue(mGrantsDB.isUserSelectable(alias)); 295 for (String alias : aliases) { 296 v2DBHelper.insertIntoGrantsTable(db, alias, 123456); [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | UserCredentialsSettings.java | 94 protected void announceRemoval(String alias) { in announceRemoval() argument 98 getListView().announceForAccessibility(getString(R.string.user_credential_removed, alias)); in announceRemoval() 233 keyChain.removeKeyPair(credential.alias); in removeGrantsAndDelete() 246 target.announceRemoval(credential.alias); in onPostExecute() 282 private boolean isAsymmetric(KeyStore keyStore, String alias, int uid) in isAsymmetric() argument 285 int errorCode = keyStore.getKeyCharacteristics(alias, null, null, uid, in isAsymmetric() 305 for (final String alias : keyStore.list(prefix, uid)) { in getCredentialsForUid() 308 if (alias.startsWith(LockPatternUtils.PROFILE_KEY_NAME_ENCRYPT) || in getCredentialsForUid() 309 alias.startsWith(LockPatternUtils.PROFILE_KEY_NAME_DECRYPT)) { in getCredentialsForUid() 313 if (alias.startsWith(LockPatternUtils.SYNTHETIC_PASSWORD_KEY_PREFIX)) { in getCredentialsForUid() [all …]
|
D | TrustedCredentialsSettings.java | 140 private boolean deleted(IKeyChainService service, String alias) throws RemoteException { in deleted() argument 143 return !service.containsCaAlias(alias); in deleted() 741 String alias = aliases.get(j); in doInBackground() local 742 byte[] encodedCertificate = service.getEncodedCaCertificate(alias, in doInBackground() 746 mTab, alias, cert, profileId)); in doInBackground() 841 String alias, in CertHolder() argument 848 mAlias = alias; in CertHolder()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | UserCredentialsSettings.java | 94 protected void announceRemoval(String alias) { in announceRemoval() argument 98 getListView().announceForAccessibility(getString(R.string.user_credential_removed, alias)); in announceRemoval() 233 keyChain.removeKeyPair(credential.alias); in removeGrantsAndDelete() 246 target.announceRemoval(credential.alias); in onPostExecute() 282 private boolean isAsymmetric(KeyStore keyStore, String alias, int uid) in isAsymmetric() argument 285 int errorCode = keyStore.getKeyCharacteristics(alias, null, null, uid, in isAsymmetric() 305 for (final String alias : keyStore.list(prefix, uid)) { in getCredentialsForUid() 308 if (alias.startsWith(LockPatternUtils.PROFILE_KEY_NAME_ENCRYPT) || in getCredentialsForUid() 309 alias.startsWith(LockPatternUtils.PROFILE_KEY_NAME_DECRYPT)) { in getCredentialsForUid() 313 if (alias.startsWith(LockPatternUtils.SYNTHETIC_PASSWORD_KEY_PREFIX)) { in getCredentialsForUid() [all …]
|
D | TrustedCredentialsSettings.java | 140 private boolean deleted(IKeyChainService service, String alias) throws RemoteException { in deleted() argument 143 return !service.containsCaAlias(alias); in deleted() 741 String alias = aliases.get(j); in doInBackground() local 742 byte[] encodedCertificate = service.getEncodedCaCertificate(alias, in doInBackground() 746 mTab, alias, cert, profileId)); in doInBackground() 841 String alias, in CertHolder() argument 848 mAlias = alias; in CertHolder()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | SSLUtils.java | 254 @Override public abstract X509Certificate[] getCertificateChain(String alias); in getCertificateChain() argument 256 @Override public abstract PrivateKey getPrivateKey(String alias); in getPrivateKey() argument 300 public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() argument 308 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() argument 337 public static KeyChainKeyManager fromAlias(Context context, String alias) in fromAlias() argument 341 certificateChain = KeyChain.getCertificateChain(context, alias); in fromAlias() 343 logError(alias, "certificate chain", e); in fromAlias() 346 logError(alias, "certificate chain", e); in fromAlias() 352 privateKey = KeyChain.getPrivateKey(context, alias); in fromAlias() 354 logError(alias, "private key", e); in fromAlias() [all …]
|
D | CertificateRequestor.java | 61 public void alias(String alias) { in alias() method in CertificateRequestor 62 if (alias == null) { in alias() 66 data.putExtra(RESULT_ALIAS, alias); in alias()
|
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
D | KeyChainTestActivity.java | 228 String alias; in chooseClientAlias() local 236 alias = mAlias; in chooseClientAlias() 238 return alias; in chooseClientAlias() 246 @Override public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() argument 250 = KeyChain.getCertificateChain(KeyChainTestActivity.this, alias); in getCertificateChain() 274 @Override public PrivateKey getPrivateKey(String alias) { in getPrivateKey() argument 278 alias); in getPrivateKey() 291 @Override public void alias(String alias) { in alias() argument 292 if (alias == null) { in alias() 299 log("Alias choosen '" + alias + "'"); in alias() [all …]
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CredentialHelper.java | 329 String alias = trustedCertificateStore.getCertificateAlias(caCert); in installVpnAndAppsTrustAnchors() local 330 if (alias == null) { in installVpnAndAppsTrustAnchors() 335 maybeApproveCaCert(context, alias); in installVpnAndAppsTrustAnchors() 341 private void maybeApproveCaCert(Context context, String alias) { in maybeApproveCaCert() argument 350 dpm.approveCaCert(alias, UserHandle.myUserId(), true); in maybeApproveCaCert() 386 String alias = aliases.nextElement(); in extractPkcs12Internal() local 387 if (keystore.isKeyEntry(alias)) { in extractPkcs12Internal() 388 KeyStore.Entry entry = keystore.getEntry(alias, password); in extractPkcs12Internal() 389 Log.d(TAG, "extracted alias = " + alias + ", entry=" + entry.getClass()); in extractPkcs12Internal() 393 mName = alias; in extractPkcs12Internal() [all …]
|
/packages/apps/KeyChain/support/src/com/android/keychain/tests/support/ |
D | KeyChainServiceTestSupport.java | 51 @Override public void revokeAppPermission(final int uid, final String alias) 54 blockingSetGrantPermission(uid, alias, false); 57 @Override public void grantAppPermission(final int uid, final String alias) 60 blockingSetGrantPermission(uid, alias, true); 70 private void blockingSetGrantPermission(int senderUid, String alias, boolean value) 75 connection.getService().setGrant(senderUid, alias, value);
|
D | IKeyChainServiceTestSupport.aidl | 37 void revokeAppPermission(int uid, String alias); in revokeAppPermission() argument 38 void grantAppPermission(int uid, String alias); in grantAppPermission() argument
|
/packages/apps/Email/src/com/android/email/view/ |
D | CertificateSelector.java | 84 public void setCertificate(String alias) { in setCertificate() argument 86 mValue = alias; in setCertificate() 88 TextUtils.isEmpty(alias) in setCertificate() 90 : alias); in setCertificate() 92 TextUtils.isEmpty(alias) in setCertificate()
|
/packages/apps/KeyChain/robotests/src/com/android/keychain/ |
D | ShadowTrustedCertificateStore.java | 48 public Certificate getCertificate(String alias) { in getCertificate() argument 49 return sDelegate.getCertificate(alias); in getCertificate() 53 public void deleteCertificateEntry(String alias) throws IOException, CertificateException { in deleteCertificateEntry() argument 54 sDelegate.deleteCertificateEntry(alias); in deleteCertificateEntry()
|
D | AliasLoaderTest.java | 139 public boolean isUserSelectable(String alias) { in setUp()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/ |
D | UserCredentialsTest.java | 39 final String alias = "credential-test-alias"; in testCredentialIsParcelable() local 40 Credential c = new Credential(alias, Process.SYSTEM_UID); in testCredentialIsParcelable() 50 assertEquals(c.alias, r.alias); in testCredentialIsParcelable()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/ |
D | WifiConfigurationProvider.java | 191 String alias = findAliasFromKeystore(keyStore); in maybeUpdateClientKeyForEAPConfiguration() local 192 if (TextUtils.isEmpty(alias) || !keyStore.isKeyEntry(alias)) { in maybeUpdateClientKeyForEAPConfiguration() 195 Key key = keyStore.getKey(alias, PASSWORD); in maybeUpdateClientKeyForEAPConfiguration() 204 Certificate[] certificates = keyStore.getCertificateChain(alias); in maybeUpdateClientKeyForEAPConfiguration()
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | CredentialStorage.java | 317 MarkKeyAsUserSelectable(String alias) { in MarkKeyAsUserSelectable() argument 318 mAlias = alias; in MarkKeyAsUserSelectable()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/ |
D | CredentialStorage.java | 317 MarkKeyAsUserSelectable(String alias) { in MarkKeyAsUserSelectable() argument 318 mAlias = alias; in MarkKeyAsUserSelectable()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelper.java | 2271 private static String buildDisplayPhotoUriAlias(String contactIdColumn, String alias) { in buildDisplayPhotoUriAlias() argument 2280 + " AS " + alias; in buildDisplayPhotoUriAlias() 2283 private static String buildThumbnailPhotoUriAlias(String contactIdColumn, String alias) { in buildThumbnailPhotoUriAlias() argument 2291 + " AS " + alias; in buildThumbnailPhotoUriAlias()
|
/packages/apps/LegacyCamera/jni/feature_mos/doc/ |
D | feature_mos_API_doxyfile | 186 # as commands in the documentation. An alias has the form "name=value". 190 # You can put \n's in the value part of an alias to insert newlines.
|
/packages/apps/LegacyCamera/jni/feature_stab/doc/ |
D | dbreg_API_doxyfile | 186 # as commands in the documentation. An alias has the form "name=value". 190 # You can put \n's in the value part of an alias to insert newlines.
|