/frameworks/base/keystore/java/android/security/keystore/ |
D | AndroidKeyStoreSpi.java | 20 import android.security.Credentials; 93 String privateKeyAlias = Credentials.USER_PRIVATE_KEY + alias; in engineGetKey() 97 String secretKeyAlias = Credentials.USER_SECRET_KEY + alias; in engineGetKey() 119 final byte[] caBytes = mKeyStore.get(Credentials.CA_CERTIFICATE + alias, mUid); in engineGetCertificateChain() 145 byte[] encodedCert = mKeyStore.get(Credentials.USER_CERTIFICATE + alias, mUid); in engineGetCertificate() 150 encodedCert = mKeyStore.get(Credentials.CA_CERTIFICATE + alias, mUid); in engineGetCertificate() 186 String privateKeyAlias = Credentials.USER_PRIVATE_KEY + alias; in getCertificateForPrivateKeyEntry() 253 Date d = getModificationDate(Credentials.USER_PRIVATE_KEY + alias); in engineGetCreationDate() 258 d = getModificationDate(Credentials.USER_SECRET_KEY + alias); in engineGetCreationDate() 263 d = getModificationDate(Credentials.USER_CERTIFICATE + alias); in engineGetCreationDate() [all …]
|
D | AndroidKeyStoreKeyFactorySpi.java | 19 import android.security.Credentials; 68 if (keyAliasInKeystore.startsWith(Credentials.USER_PRIVATE_KEY)) { in engineGetKeySpec() 69 entryAlias = keyAliasInKeystore.substring(Credentials.USER_PRIVATE_KEY.length()); in engineGetKeySpec()
|
D | AndroidKeyStoreKeyGeneratorSpi.java | 19 import android.security.Credentials; 300 String keyAliasInKeystore = Credentials.USER_SECRET_KEY + spec.getKeystoreAlias(); in engineGenerateKey() 304 Credentials.deleteAllTypesForAlias(mKeyStore, spec.getKeystoreAlias(), spec.getUid()); in engineGenerateKey() 329 Credentials.deleteAllTypesForAlias( in engineGenerateKey()
|
D | AndroidKeyStoreSecretKeyFactorySpi.java | 19 import android.security.Credentials; 67 if (keyAliasInKeystore.startsWith(Credentials.USER_SECRET_KEY)) { in engineGetKeySpec() 68 entryAlias = keyAliasInKeystore.substring(Credentials.USER_SECRET_KEY.length()); in engineGetKeySpec()
|
D | AndroidKeyStoreKeyPairGeneratorSpi.java | 20 import android.security.Credentials; 464 Credentials.deleteAllTypesForAlias(mKeyStore, mEntryAlias, mEntryUid); in generateKeyPair() 465 final String privateKeyAlias = Credentials.USER_PRIVATE_KEY + mEntryAlias; in generateKeyPair() 478 Credentials.deleteAllTypesForAlias(mKeyStore, mEntryAlias, mEntryUid); in generateKeyPair() 554 Credentials.USER_CERTIFICATE, iter.next(), flags, "Failed to store certificate"); in storeCertificateChain() 566 storeCertificate(Credentials.CA_CERTIFICATE, certificateConcatenationStream.toByteArray(), in storeCertificateChain()
|
/frameworks/base/keystore/tests/src/android/security/keystore/ |
D | AndroidKeyStoreTest.java | 23 import android.security.Credentials; 768 assertTrue(mAndroidKeyStore.generate(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_Aliases_Encrypted_Success() 774 assertTrue(mAndroidKeyStore.put(Credentials.CA_CERTIFICATE + TEST_ALIAS_2, FAKE_RSA_CA_1, in testKeyStore_Aliases_Encrypted_Success() 797 assertTrue(mAndroidKeyStore.generate(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_ContainsAliases_PrivateAndCA_Encrypted_Success() 803 assertTrue(mAndroidKeyStore.put(Credentials.CA_CERTIFICATE + TEST_ALIAS_2, FAKE_RSA_CA_1, in testKeyStore_ContainsAliases_PrivateAndCA_Encrypted_Success() 817 assertTrue(mAndroidKeyStore.put(Credentials.CA_CERTIFICATE + TEST_ALIAS_2, FAKE_RSA_CA_1, in testKeyStore_ContainsAliases_CAOnly_Encrypted_Success() 837 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_DeleteEntry_Encrypted_Success() 839 … assertTrue(mAndroidKeyStore.put(Credentials.USER_CERTIFICATE + TEST_ALIAS_1, FAKE_RSA_USER_1, in testKeyStore_DeleteEntry_Encrypted_Success() 841 assertTrue(mAndroidKeyStore.put(Credentials.CA_CERTIFICATE + TEST_ALIAS_1, FAKE_RSA_CA_1, in testKeyStore_DeleteEntry_Encrypted_Success() 845 assertTrue(mAndroidKeyStore.put(Credentials.CA_CERTIFICATE + TEST_ALIAS_2, FAKE_RSA_CA_1, in testKeyStore_DeleteEntry_Encrypted_Success() [all …]
|
D | AndroidKeyPairGeneratorTest.java | 19 import android.security.Credentials; 368 final byte[] userCertBytes = mAndroidKeyStore.get(Credentials.USER_CERTIFICATE + alias); in assertKeyPairCorrect() 386 Credentials.USER_PRIVATE_KEY + alias, in assertKeyPairCorrect() 411 final byte[] caCerts = mAndroidKeyStore.get(Credentials.CA_CERTIFICATE + alias); in assertKeyPairCorrect() 415 Credentials.USER_PRIVATE_KEY + alias, KeymasterDefs.KM_KEY_FORMAT_X509, null, null); in assertKeyPairCorrect()
|
/frameworks/base/keystore/java/android/security/ |
D | Credentials.java | 48 public class Credentials { class 171 private static Credentials singleton; 173 public static Credentials getInstance() { in getInstance() 175 singleton = new Credentials(); in getInstance() 262 return keystore.delete(Credentials.USER_CERTIFICATE + alias, uid) in deleteCertificateTypesForAlias() 263 & keystore.delete(Credentials.CA_CERTIFICATE + alias, uid); in deleteCertificateTypesForAlias() 279 return keystore.delete(Credentials.USER_PRIVATE_KEY + alias, uid); in deletePrivateKeyTypeForAlias() 295 return keystore.delete(Credentials.USER_SECRET_KEY + alias, uid); in deleteSecretKeyTypeForAlias()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiCertManagerTest.java | 24 import android.security.Credentials; 78 String prefix = Credentials.USER_PRIVATE_KEY; in listClientCertsForAllUsers() 105 Credentials.USER_PRIVATE_KEY, UserHandle.myUserId()); in testEmptyConfigFile() 113 String prefix = Credentials.USER_PRIVATE_KEY; in testOperations()
|
D | WifiConfigManagerTest.java | 39 import android.security.Credentials; 883 byte[] certPem = Credentials.convertToPem(certs[i]); in asserCaCertsAliasesMatch() 887 Credentials.CA_CERTIFICATE + aliasList.get(j)).blob; in asserCaCertsAliasesMatch() 913 assertTrue(alias.startsWith(Credentials.CA_CERTIFICATE)); in assertSavedCaCerts() 914 aliases.add(alias.substring(Credentials.CA_CERTIFICATE.length())); in assertSavedCaCerts()
|
/frameworks/opt/net/wifi/tests/wifitests/src/android/net/wifi/ |
D | WifiEnterpriseConfigTest.java | 26 import android.security.Credentials; 42 public static final String CA_CERT_PREFIX = KEYSTORE_URI + Credentials.CA_CERTIFICATE; 92 WifiEnterpriseConfig.encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + alias0), in testSaveMultipleCaCertificates() 93 … WifiEnterpriseConfig.encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + alias1))); in testSaveMultipleCaCertificates() 102 WifiEnterpriseConfig.encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + alias0), in testLoadMultipleCaCertificates() 103 … WifiEnterpriseConfig.encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + alias1))); in testLoadMultipleCaCertificates()
|
/frameworks/base/core/java/android/net/ |
D | Credentials.java | 23 public class Credentials { class 31 public Credentials (int pid, int uid, int gid) { in Credentials() method in Credentials
|
D | LocalSocketImpl.java | 204 private native Credentials getPeerCredentials_native( in getPeerCredentials_native() 588 public Credentials getPeerCredentials() throws IOException { in getPeerCredentials()
|
D | LocalSocket.java | 313 public Credentials getPeerCredentials() throws IOException { in getPeerCredentials()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiCertManager.java | 24 import android.security.Credentials; 84 if (mAffiliatedUserOnlyCerts.add(Credentials.USER_PRIVATE_KEY + key)) { in hideCertFromUnaffiliatedUsers() 142 return KeyStore.getInstance().list(Credentials.USER_PRIVATE_KEY, UserHandle.myUserId()); in listClientCertsForAllUsers()
|
D | WifiConfigStore.java | 29 import android.security.Credentials; 467 String privKeyName = Credentials.USER_PRIVATE_KEY + name; in installKeys() 468 String userCertName = Credentials.USER_CERTIFICATE + name; in installKeys() 507 ret = putCertInKeyStore(Credentials.CA_CERTIFICATE + alias, caCertificates[i]); in installKeys() 516 mKeyStore.delete(Credentials.CA_CERTIFICATE + addedAlias, Process.WIFI_UID); in installKeys() 526 mKeyStore.delete(Credentials.CA_CERTIFICATE + oldAlias, Process.WIFI_UID); in installKeys() 544 byte[] certData = Credentials.convertToPem(cert); in putCertInKeyStore() 565 mKeyStore.delete(Credentials.USER_PRIVATE_KEY + client, Process.WIFI_UID); in removeKeys() 566 mKeyStore.delete(Credentials.USER_CERTIFICATE + client, Process.WIFI_UID); in removeKeys() 575 mKeyStore.delete(Credentials.CA_CERTIFICATE + ca, Process.WIFI_UID); in removeKeys()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiEnterpriseConfig.java | 21 import android.security.Credentials; 97 public static final String CA_CERT_PREFIX = KEYSTORE_URI + Credentials.CA_CERTIFICATE; 99 public static final String CLIENT_CERT_PREFIX = KEYSTORE_URI + Credentials.USER_CERTIFICATE; 613 sb.append(encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + aliases[i])); in setCaCertificateAliases() 644 if (aliases[i].startsWith(Credentials.CA_CERTIFICATE)) { in getCaCertificateAliases() 645 aliases[i] = aliases[i].substring(Credentials.CA_CERTIFICATE.length()); in getCaCertificateAliases() 774 setFieldValue(PRIVATE_KEY_ID_KEY, alias, Credentials.USER_PRIVATE_KEY); in setClientCertificateAlias()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | LocalSocketTest.java | 19 import android.net.Credentials; 52 Credentials c = ls1.getPeerCredentials(); in testBasic()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ZygoteConnection.java | 25 import android.net.Credentials; 79 private final Credentials peer; 613 private static void applyUidSecurityPolicy(Arguments args, Credentials peer) in applyUidSecurityPolicy() 671 private static void applyInvokeWithSecurityPolicy(Arguments args, Credentials peer) in applyInvokeWithSecurityPolicy()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | LockdownVpnTracker.java | 41 import android.security.Credentials; 90 return KeyStore.getInstance().contains(Credentials.LOCKDOWN_VPN); in isEnabled()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/pps/ |
D | Credential.java | 4 import android.security.Credentials; 155 byte[] octets = keyStore.get(Credentials.USER_CERTIFICATE + alias); in Credential()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 73 import android.security.Credentials; 1315 privateKey = Credentials.USER_PRIVATE_KEY + profile.ipsecUserCert; in startLegacyVpnPrivileged() 1316 byte[] value = keyStore.get(Credentials.USER_CERTIFICATE + profile.ipsecUserCert); in startLegacyVpnPrivileged() 1320 byte[] value = keyStore.get(Credentials.CA_CERTIFICATE + profile.ipsecCaCert); in startLegacyVpnPrivileged() 1324 byte[] value = keyStore.get(Credentials.USER_CERTIFICATE + profile.ipsecServerCert); in startLegacyVpnPrivileged()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | DefaultPermissionGrantPolicy.java | 40 import android.security.Credentials; 302 Intent certInstallerIntent = new Intent(Credentials.INSTALL_ACTION); in grantDefaultSystemHandlerPermissions()
|
/frameworks/base/core/java/android/app/admin/ |
D | DevicePolicyManager.java | 50 import android.security.Credentials; 2903 final byte[] pemCert = Credentials.convertToPem(certs[0]); in installKeyPair() 2906 pemChain = Credentials.convertToPem(Arrays.copyOfRange(certs, 1, certs.length)); in installKeyPair()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | ConnectivityServiceMock.java | 96 import android.security.Credentials;
|