Home
last modified time | relevance | path

Searched refs:alias (Results 1 – 25 of 47) sorted by relevance

12

/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java121 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 …]
DKeyChainActivity.java120 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/
DGrantsDatabase.java106 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 …]
DKeyInfoProvider.java13 public boolean isUserSelectable(String alias); in isUserSelectable() argument
/packages/apps/KeyChain/support/src/com/android/keychain/tests/support/
DKeyChainServiceTestSupport.java59 @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 …]
DIKeyChainServiceTestSupport.aidl38 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/
DGrantsDatabaseTest.java226 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/
DUserCredentialsSettings.java94 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 …]
DTrustedCredentialsSettings.java140 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/
DUserCredentialsSettings.java94 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 …]
DTrustedCredentialsSettings.java140 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/
DKeyChainTestActivity.java228 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() method in KeyChainTestActivity.AliasResponse
292 if (alias == null) { in alias()
299 log("Alias choosen '" + alias + "'"); in alias()
[all …]
DBasicKeyChainServiceTest.java314 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/
DCredentialStorage.java146 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/
DCredentialStorageActivity.java198 String alias = installBundle.getString(Credentials.EXTRA_USER_KEY_ALIAS, null); in installIfAvailable() local
199 if (TextUtils.isEmpty(alias)) { in installIfAvailable()
209 new InstallKeyInKeyChain(alias, privateKeyData, certData, caListData, uid).execute(); in installIfAvailable()
281 InstallKeyInKeyChain(String alias, byte[] keyData, byte[] certData, byte[] caListData, in InstallKeyInKeyChain() argument
283 mAlias = alias; in InstallKeyInKeyChain()
314 private void onKeyInstalled(String alias, int uid, boolean result) { in onKeyInstalled() argument
316 LOG.w(String.format("Error installing alias %s for uid %d", alias, uid)); in onKeyInstalled()
327 new MarkKeyAsUserSelectable(this, alias).execute(); in onKeyInstalled()
342 MarkKeyAsUserSelectable(CredentialStorageActivity credentialStorage, String alias) { in MarkKeyAsUserSelectable() argument
344 mAlias = alias; in MarkKeyAsUserSelectable()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCredentialHelper.java351 String alias = trustedCertificateStore.getCertificateAlias(caCert); in installVpnAndAppsTrustAnchors() local
352 if (alias == null) { in installVpnAndAppsTrustAnchors()
357 maybeApproveCaCert(context, alias); in installVpnAndAppsTrustAnchors()
363 private void maybeApproveCaCert(Context context, String alias) { in maybeApproveCaCert() argument
368 dpm.approveCaCert(alias, UserHandle.myUserId(), true); in maybeApproveCaCert()
404 String alias = aliases.nextElement(); in extractPkcs12Internal() local
405 if (keystore.isKeyEntry(alias)) { in extractPkcs12Internal()
406 KeyStore.Entry entry = keystore.getEntry(alias, password); in extractPkcs12Internal()
407 Log.d(TAG, "extracted alias = " + alias + ", entry=" + entry.getClass()); in extractPkcs12Internal()
411 mName = alias; in extractPkcs12Internal()
[all …]
/packages/apps/Settings/src/com/android/settings/security/
DCredentialStorage.java147 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/
DShadowTrustedCertificateStore.java48 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()
DAliasLoaderTest.java139 public boolean isUserSelectable(String alias) { in setUp()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DUserCredentialsTest.java39 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/
DWifiConfigurationProvider.java193 String alias = findAliasFromKeystore(keyStore); in maybeUpdateClientKeyForEAPConfiguration() local
194 if (TextUtils.isEmpty(alias) || !keyStore.isKeyEntry(alias)) { in maybeUpdateClientKeyForEAPConfiguration()
197 Key key = keyStore.getKey(alias, PASSWORD); in maybeUpdateClientKeyForEAPConfiguration()
206 Certificate[] certificates = keyStore.getCertificateChain(alias); in maybeUpdateClientKeyForEAPConfiguration()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeCertPayload.java144 String alias = in validateCertificates() local
147 keyStore.setCertificateEntry(alias, trustedCert); in validateCertificates()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsDatabaseHelper.java2275 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/apps/LegacyCamera/jni/feature_mos/doc/
Dfeature_mos_API_doxyfile186 # 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/
Ddbreg_API_doxyfile186 # 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.

12