/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainService.java | 121 for (String alias: keyStoreAliases) { in getExistingKeyAliases() 122 Log.w(TAG, "Got Alias from KeyStore: " + alias); in getExistingKeyAliases() 123 String unPrefixedAlias = alias.replaceFirst("^" + Credentials.USER_PRIVATE_KEY, ""); in getExistingKeyAliases() 138 public String requestPrivateKey(String alias) { 139 if (!hasGrant(alias)) { 143 final String keystoreAlias = Credentials.USER_PRIVATE_KEY + alias; 149 @Override public byte[] getCertificate(String alias) { 150 if (!hasGrant(alias)) { 153 return mKeyStore.get(Credentials.USER_CERTIFICATE + alias); 156 @Override public byte[] getCaCertificates(String alias) { [all …]
|
D | KeyChainActivity.java | 120 public boolean isUserSelectable(String alias) { in chooseCertificate() 123 return connection.getService().isUserSelectable(alias); in chooseCertificate() 158 @Override public void alias(String alias) { in chooseCertificate() 159 Log.i(TAG, String.format("Alias provided by device policy client: %s", alias)); in chooseCertificate() 162 if (alias != null) { in chooseCertificate() 163 finishWithAliasFromPolicy(alias); in chooseCertificate() 205 String alias = getIntent().getStringExtra(KeyChain.EXTRA_ALIAS); in chooseCertificate() local 207 devicePolicyManager.choosePrivateKeyAlias(mSenderUid, uri, alias, callback); in chooseCertificate() 212 callback.alias(null); in chooseCertificate() 241 public boolean shouldPresentCertificate(String alias) { in shouldPresentCertificate() argument [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/support/src/com/android/keychain/tests/support/ |
D | KeyChainServiceTestSupport.java | 59 @Override public void revokeAppPermission(final int uid, final String alias) 62 blockingSetGrantPermission(uid, alias, false); 65 @Override public void grantAppPermission(final int uid, final String alias) 68 blockingSetGrantPermission(uid, alias, true); 72 byte[] privateKey, byte[] userCert, byte[] certChain, String alias) 77 privateKey, userCert, certChain, alias, KeyStore.UID_SELF); 81 @Override public boolean removeKeyPair(String alias) throws RemoteException { 84 return keyChainService.removeKeyPair(alias); 88 @Override public void setUserSelectable(String alias, boolean isUserSelectable) 92 service.setUserSelectable(alias, isUserSelectable); [all …]
|
D | IKeyChainServiceTestSupport.aidl | 38 void revokeAppPermission(int uid, String alias); in revokeAppPermission() argument 39 void grantAppPermission(int uid, String alias); in grantAppPermission() argument 40 …oolean installKeyPair(in byte[] privateKey, in byte[] userCert, in byte[] certChain, String alias); in installKeyPair() argument 41 boolean removeKeyPair(String alias); in removeKeyPair() argument 42 void setUserSelectable(String alias, boolean isUserSelectable); in setUserSelectable() argument 44 int attestKey(in String alias, in byte[] challenge, in int[] idAttestationFlags); in attestKey() argument 45 boolean setKeyPairCertificate(String alias, in byte[] userCert, in byte[] certChain); in setKeyPairCertificate() 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/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/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/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 …]
|
D | BasicKeyChainServiceTest.java | 314 void generateRsaKey(String alias) throws RemoteException { in generateRsaKey() argument 316 buildRsaKeySpec(alias)); in generateRsaKey() 321 void removeKeyPair(String alias) throws RemoteException { in removeKeyPair() argument 322 assertThat(mTestSupportService.removeKeyPair(alias)).isTrue(); in removeKeyPair() 410 private KeyGenParameterSpec buildRsaKeySpec(String alias) { in buildRsaKeySpec() argument 412 alias, in buildRsaKeySpec()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/ |
D | CredentialStorage.java | 146 String alias = bundle.getString(Credentials.EXTRA_USER_KEY_ALIAS, null); in installIfAvailable() local 147 if (TextUtils.isEmpty(alias)) { in installIfAvailable() 155 new InstallKeyInKeyChain(alias, privateKeyData, certData, caListData, uid).execute(); in installIfAvailable() 260 InstallKeyInKeyChain(String alias, byte[] keyData, byte[] certData, byte[] caListData, in InstallKeyInKeyChain() argument 262 mAlias = alias; in InstallKeyInKeyChain() 292 private void onKeyInstalled(String alias, int uid, boolean result) { in onKeyInstalled() argument 294 Log.w(TAG, String.format("Error installing alias %s for uid %d", alias, uid)); in onKeyInstalled() 305 new MarkKeyAsUserSelectable(alias).execute(); in onKeyInstalled() 318 MarkKeyAsUserSelectable(String alias) { in MarkKeyAsUserSelectable() argument 319 mAlias = alias; in MarkKeyAsUserSelectable()
|
/packages/apps/Car/Settings/src/com/android/car/settings/security/ |
D | CredentialStorageActivity.java | 193 String alias = installBundle.getString(Credentials.EXTRA_USER_KEY_ALIAS, null); in installIfAvailable() local 194 if (TextUtils.isEmpty(alias)) { in installIfAvailable() 204 new InstallKeyInKeyChain(alias, privateKeyData, certData, caListData, uid).execute(); in installIfAvailable() 275 InstallKeyInKeyChain(String alias, byte[] keyData, byte[] certData, byte[] caListData, in InstallKeyInKeyChain() argument 277 mAlias = alias; in InstallKeyInKeyChain() 308 private void onKeyInstalled(String alias, int uid, boolean result) { in onKeyInstalled() argument 310 LOG.w(String.format("Error installing alias %s for uid %d", alias, uid)); in onKeyInstalled() 321 new MarkKeyAsUserSelectable(this, alias).execute(); in onKeyInstalled() 336 MarkKeyAsUserSelectable(CredentialStorageActivity credentialStorage, String alias) { in MarkKeyAsUserSelectable() argument 338 mAlias = alias; in MarkKeyAsUserSelectable()
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CredentialHelper.java | 353 String alias = trustedCertificateStore.getCertificateAlias(caCert); in installVpnAndAppsTrustAnchors() local 354 if (alias == null) { in installVpnAndAppsTrustAnchors() 359 maybeApproveCaCert(context, alias); in installVpnAndAppsTrustAnchors() 365 private void maybeApproveCaCert(Context context, String alias) { in maybeApproveCaCert() argument 370 dpm.approveCaCert(alias, UserHandle.myUserId(), true); in maybeApproveCaCert() 406 String alias = aliases.nextElement(); in extractPkcs12Internal() local 407 if (keystore.isKeyEntry(alias)) { in extractPkcs12Internal() 408 KeyStore.Entry entry = keystore.getEntry(alias, password); in extractPkcs12Internal() 409 Log.d(TAG, "extracted alias = " + alias + ", entry=" + entry.getClass()); in extractPkcs12Internal() 413 mName = alias; in extractPkcs12Internal() [all …]
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | CredentialStorage.java | 147 String alias = bundle.getString(Credentials.EXTRA_USER_KEY_ALIAS, null); in installIfAvailable() local 148 if (TextUtils.isEmpty(alias)) { in installIfAvailable() 156 new InstallKeyInKeyChain(alias, privateKeyData, certData, caListData, uid).execute(); in installIfAvailable() 261 InstallKeyInKeyChain(String alias, byte[] keyData, byte[] certData, byte[] caListData, in InstallKeyInKeyChain() argument 263 mAlias = alias; in InstallKeyInKeyChain() 302 private void onKeyInstalled(String alias, int uid, boolean result) { in onKeyInstalled() argument 304 Log.w(TAG, String.format("Error installing alias %s for uid %d", alias, uid)); in onKeyInstalled() 310 alias, uid)); in onKeyInstalled()
|
/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/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeCertPayload.java | 144 String alias = in validateCertificates() local 147 keyStore.setCertificateEntry(alias, trustedCert); in validateCertificates()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelper.java | 2275 private static String buildDisplayPhotoUriAlias(String contactIdColumn, String alias) { in buildDisplayPhotoUriAlias() argument 2284 + " AS " + alias; in buildDisplayPhotoUriAlias() 2287 private static String buildThumbnailPhotoUriAlias(String contactIdColumn, String alias) { in buildThumbnailPhotoUriAlias() argument 2295 + " AS " + alias; in buildThumbnailPhotoUriAlias()
|
/packages/services/Car/tests/BugReportApp/libs/ |
D | google-http-client-1.30.1.jar | META-INF/MANIFEST.MF
META-INF/
com/
com/google/
com/ ... |
/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.
|