/frameworks/base/keystore/java/android/security/keystore/ |
D | AndroidKeyStoreSpi.java | 90 public Key engineGetKey(String alias, char[] password) throws NoSuchAlgorithmException, in engineGetKey() argument 92 if (isPrivateKeyEntry(alias)) { in engineGetKey() 93 String privateKeyAlias = Credentials.USER_PRIVATE_KEY + alias; in engineGetKey() 96 } else if (isSecretKeyEntry(alias)) { in engineGetKey() 97 String secretKeyAlias = Credentials.USER_SECRET_KEY + alias; in engineGetKey() 107 public Certificate[] engineGetCertificateChain(String alias) { in engineGetCertificateChain() argument 108 if (alias == null) { in engineGetCertificateChain() 112 final X509Certificate leaf = (X509Certificate) engineGetCertificate(alias); in engineGetCertificateChain() 119 final byte[] caBytes = mKeyStore.get(Credentials.CA_CERTIFICATE + alias, mUid); in engineGetCertificateChain() 140 public Certificate engineGetCertificate(String alias) { in engineGetCertificate() argument [all …]
|
D | AndroidKeyStoreRSAPublicKey.java | 31 …public AndroidKeyStoreRSAPublicKey(String alias, int uid, byte[] x509EncodedForm, BigInteger modul… in AndroidKeyStoreRSAPublicKey() argument 33 super(alias, uid, KeyProperties.KEY_ALGORITHM_RSA, x509EncodedForm); in AndroidKeyStoreRSAPublicKey() 38 public AndroidKeyStoreRSAPublicKey(String alias, int uid, RSAPublicKey info) { in AndroidKeyStoreRSAPublicKey() argument 39 this(alias, uid, info.getEncoded(), info.getModulus(), info.getPublicExponent()); in AndroidKeyStoreRSAPublicKey()
|
D | AndroidKeyStoreECPublicKey.java | 33 …public AndroidKeyStoreECPublicKey(String alias, int uid, byte[] x509EncodedForm, ECParameterSpec p… in AndroidKeyStoreECPublicKey() argument 35 super(alias, uid, KeyProperties.KEY_ALGORITHM_EC, x509EncodedForm); in AndroidKeyStoreECPublicKey() 40 public AndroidKeyStoreECPublicKey(String alias, int uid, ECPublicKey info) { in AndroidKeyStoreECPublicKey() argument 41 this(alias, uid, info.getEncoded(), info.getParams(), info.getW()); in AndroidKeyStoreECPublicKey()
|
D | AndroidKeyStoreSecretKey.java | 28 public AndroidKeyStoreSecretKey(String alias, int uid, String algorithm) { in AndroidKeyStoreSecretKey() argument 29 super(alias, uid, algorithm); in AndroidKeyStoreSecretKey()
|
D | AndroidKeyStorePrivateKey.java | 28 public AndroidKeyStorePrivateKey(String alias, int uid, String algorithm) { in AndroidKeyStorePrivateKey() argument 29 super(alias, uid, algorithm); in AndroidKeyStorePrivateKey()
|
D | AndroidKeyStoreRSAPrivateKey.java | 32 public AndroidKeyStoreRSAPrivateKey(String alias, int uid, BigInteger modulus) { in AndroidKeyStoreRSAPrivateKey() argument 33 super(alias, uid, KeyProperties.KEY_ALGORITHM_RSA); in AndroidKeyStoreRSAPrivateKey()
|
D | AndroidKeyStoreECPrivateKey.java | 31 public AndroidKeyStoreECPrivateKey(String alias, int uid, ECParameterSpec params) { in AndroidKeyStoreECPrivateKey() argument 32 super(alias, uid, KeyProperties.KEY_ALGORITHM_EC); in AndroidKeyStoreECPrivateKey()
|
D | AndroidKeyStorePublicKey.java | 31 … public AndroidKeyStorePublicKey(String alias, int uid, String algorithm, byte[] x509EncodedForm) { in AndroidKeyStorePublicKey() argument 32 super(alias, uid, algorithm); in AndroidKeyStorePublicKey()
|
D | AndroidKeyStoreKey.java | 31 public AndroidKeyStoreKey(String alias, int uid, String algorithm) { in AndroidKeyStoreKey() argument 32 mAlias = alias; in AndroidKeyStoreKey()
|
/frameworks/base/keystore/java/android/security/ |
D | IKeyChainService.aidl | 28 String requestPrivateKey(String alias); in requestPrivateKey() argument 29 byte[] getCertificate(String alias); in getCertificate() argument 30 byte[] getCaCertificates(String alias); in getCaCertificates() argument 36 …oolean installKeyPair(in byte[] privateKey, in byte[] userCert, in byte[] certChain, String alias); in installKeyPair() argument 37 boolean removeKeyPair(String alias); in removeKeyPair() argument 40 boolean deleteCaCertificate(String alias); in deleteCaCertificate() argument 44 boolean containsCaAlias(String alias); in containsCaAlias() argument 45 byte[] getEncodedCaCertificate(String alias, boolean includeDeletedSystem); in getEncodedCaCertificate() argument 49 void setGrant(int uid, String alias, boolean value); in setGrant() argument 50 boolean hasGrant(int uid, String alias); in hasGrant() argument
|
D | Credentials.java | 224 public static boolean deleteAllTypesForAlias(KeyStore keystore, String alias) { in deleteAllTypesForAlias() argument 225 return deleteAllTypesForAlias(keystore, alias, KeyStore.UID_SELF); in deleteAllTypesForAlias() 233 public static boolean deleteAllTypesForAlias(KeyStore keystore, String alias, int uid) { in deleteAllTypesForAlias() argument 238 return deletePrivateKeyTypeForAlias(keystore, alias, uid) in deleteAllTypesForAlias() 239 & deleteSecretKeyTypeForAlias(keystore, alias, uid) in deleteAllTypesForAlias() 240 & deleteCertificateTypesForAlias(keystore, alias, uid); in deleteAllTypesForAlias() 248 public static boolean deleteCertificateTypesForAlias(KeyStore keystore, String alias) { in deleteCertificateTypesForAlias() argument 249 return deleteCertificateTypesForAlias(keystore, alias, KeyStore.UID_SELF); in deleteCertificateTypesForAlias() 257 public static boolean deleteCertificateTypesForAlias(KeyStore keystore, String alias, int uid) { in deleteCertificateTypesForAlias() argument 262 return keystore.delete(Credentials.USER_CERTIFICATE + alias, uid) in deleteCertificateTypesForAlias() [all …]
|
D | KeyChain.java | 312 @Nullable String host, int port, @Nullable String alias) { in choosePrivateKeyAlias() argument 319 choosePrivateKeyAlias(activity, response, keyTypes, issuers, uri, alias); in choosePrivateKeyAlias() 360 @Nullable Uri uri, @Nullable String alias) { in choosePrivateKeyAlias() argument 387 intent.putExtra(EXTRA_ALIAS, alias); in choosePrivateKeyAlias() 398 @Override public void alias(String alias) { in alias() argument 399 keyChainAliasResponse.alias(alias); in alias() 419 public static PrivateKey getPrivateKey(@NonNull Context context, @NonNull String alias) in getPrivateKey() argument 421 if (alias == null) { in getPrivateKey() 430 keyId = keyChainConnection.getService().requestPrivateKey(alias); in getPrivateKey() 472 @NonNull String alias) throws KeyChainException, InterruptedException { in getCertificateChain() argument [all …]
|
D | KeyStore.java | 429 public int generateKey(String alias, KeymasterArguments args, byte[] entropy, int uid, in generateKey() argument 432 return mBinder.generateKey(alias, args, entropy, uid, flags, outCharacteristics); in generateKey() 439 public int generateKey(String alias, KeymasterArguments args, byte[] entropy, int flags, in generateKey() argument 441 return generateKey(alias, args, entropy, UID_SELF, flags, outCharacteristics); in generateKey() 444 public int getKeyCharacteristics(String alias, KeymasterBlob clientId, KeymasterBlob appId, in getKeyCharacteristics() argument 447 return mBinder.getKeyCharacteristics(alias, clientId, appId, uid, outCharacteristics); in getKeyCharacteristics() 454 public int getKeyCharacteristics(String alias, KeymasterBlob clientId, KeymasterBlob appId, in getKeyCharacteristics() argument 456 return getKeyCharacteristics(alias, clientId, appId, UID_SELF, outCharacteristics); in getKeyCharacteristics() 459 public int importKey(String alias, KeymasterArguments args, int format, byte[] keyData, in importKey() argument 462 return mBinder.importKey(alias, args, format, keyData, uid, flags, in importKey() [all …]
|
D | IKeyChainAliasCallback.aidl | 25 void alias(String alias); in alias() argument
|
D | KeyChainAliasCallback.java | 30 public void alias(@Nullable String alias); in alias() argument
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
D | ClientKeyManager.java | 64 String alias = mAliasMap.get(OSUCertType.Client); in getClientAliases() local 65 return alias != null ? new String[]{alias} : null; in getClientAliases() 82 public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() argument 84 if (!mAliasMap.get(OSUCertType.Client).equals(alias)) { in getCertificateChain() 85 Log.w(OSUManager.TAG, "Bad cert alias requested: '" + alias + "'"); in getCertificateChain() 89 Certificate cert = mKeyStore.getCertificate(alias); in getCertificateChain() 95 } else if (sTempAlias.equals(alias)) { in getCertificateChain() 98 Log.w(OSUManager.TAG, "Bad cert alias requested: '" + alias + "'"); in getCertificateChain() 104 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() argument 106 if (!mAliasMap.get(OSUCertType.Client).equals(alias)) { in getPrivateKey() [all …]
|
D | WiFiKeyManager.java | 44 String alias = aliases.nextElement(); in enableClientAuth() local 45 Certificate cert = mKeyStore.getCertificate(alias); in enableClientAuth() 46 if ((cert instanceof X509Certificate) && mKeyStore.getKey(alias, null) != null) { in enableClientAuth() 50 mAliases.put(issuer, new String[]{alias, cert.getPublicKey().getAlgorithm()}); in enableClientAuth() 64 private AliasEntry(int preference, String alias) { in AliasEntry() argument 66 mAlias = alias; in AliasEntry() 148 public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() argument 151 for (Certificate certificate : mKeyStore.getCertificateChain(alias)) { in getCertificateChain() 164 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() argument 166 return (PrivateKey) mKeyStore.getKey(alias, null); in getPrivateKey()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageKeySetData.java | 53 protected void addUpgradeKeySet(String alias) { in addUpgradeKeySet() argument 54 if (alias == null) { in addUpgradeKeySet() 59 Long ks = mKeySetAliases.get(alias); in addUpgradeKeySet() 63 throw new IllegalArgumentException("Upgrade keyset alias " + alias in addUpgradeKeySet() 105 protected void addDefinedKeySet(long ks, String alias) { in addDefinedKeySet() argument 106 mKeySetAliases.put(alias, ks); in addDefinedKeySet()
|
/frameworks/ex/common/java/com/android/common/content/ |
D | ProjectionMap.java | 37 public Builder add(String alias, String expression) { in add() argument 38 mMap.putColumn(alias, expression + " AS " + alias); in add() 79 private void putColumn(String alias, String column) { in putColumn() argument 80 super.put(alias, column); in putColumn()
|
/frameworks/base/core/java/android/security/ |
D | IKeystoreService.aidl | 60 int generateKey(String alias, in KeymasterArguments arguments, in byte[] entropy, int uid, in generateKey() argument 62 int getKeyCharacteristics(String alias, in KeymasterBlob clientId, in KeymasterBlob appId, in getKeyCharacteristics() argument 64 int importKey(String alias, in KeymasterArguments arguments, int format, in importKey() argument 66 ExportResult exportKey(String alias, int format, in KeymasterBlob clientId, in exportKey() argument 68 OperationResult begin(IBinder appToken, String alias, int purpose, boolean pruneable, in begin() argument 78 int attestKey(String alias, in KeymasterArguments params, out KeymasterCertificateChain chain); in attestKey() argument
|
/frameworks/base/core/java/android/security/net/config/ |
D | TrustedCertificateStoreAdapter.java | 78 public Certificate getCertificate(String alias) { in getCertificate() argument 83 public Certificate getCertificate(String alias, boolean includeDeletedSystem) { in getCertificate() argument 88 public Date getCreationDate(String alias) { in getCreationDate() argument 108 public boolean containsAlias(String alias) { in containsAlias() argument
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiEnterpriseConfig.java | 542 public static String encodeCaCertificateAlias(String alias) { in encodeCaCertificateAlias() argument 543 byte[] bytes = alias.getBytes(StandardCharsets.UTF_8); in encodeCaCertificateAlias() 555 public static String decodeCaCertificateAlias(String alias) { in decodeCaCertificateAlias() argument 556 byte[] data = new byte[alias.length() >> 1]; in decodeCaCertificateAlias() 557 for (int n = 0, position = 0; n < alias.length(); n += 2, position++) { in decodeCaCertificateAlias() 558 data[position] = (byte) Integer.parseInt(alias.substring(n, n + 2), 16); in decodeCaCertificateAlias() 564 return alias; in decodeCaCertificateAlias() 577 public void setCaCertificateAlias(String alias) { in setCaCertificateAlias() argument 578 setFieldValue(CA_CERT_KEY, alias, CA_CERT_PREFIX); in setCaCertificateAlias() 763 public void setClientCertificateAlias(String alias) { in setClientCertificateAlias() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | WifiDisplayAdapter.java | 238 public void requestRenameLocked(String address, String alias) { in requestRenameLocked() argument 240 Slog.d(TAG, "requestRenameLocked: address=" + address + ", alias=" + alias); in requestRenameLocked() 243 if (alias != null) { in requestRenameLocked() 244 alias = alias.trim(); in requestRenameLocked() 245 if (alias.isEmpty() || alias.equals(address)) { in requestRenameLocked() 246 alias = null; in requestRenameLocked() 251 if (display != null && !Objects.equal(display.getDeviceAlias(), alias)) { in requestRenameLocked() 252 display = new WifiDisplay(address, display.getDeviceName(), alias, in requestRenameLocked()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiKeyStore.java | 123 String alias = caCertificates.length == 1 ? name in installKeys() local 126 oldCaCertificatesToRemove.remove(alias); in installKeys() 127 ret = putCertInKeyStore(Credentials.CA_CERTIFICATE + alias, caCertificates[i]); in installKeys() 140 caCertificateAliases.add(alias); in installKeys()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiEnterpriseConfigTest.java | 156 final String alias = "single_alias 0"; in testSaveSingleCaCertificateAlias() local 157 mEnterpriseConfig.setCaCertificateAliases(new String[] {alias}); in testSaveSingleCaCertificateAlias() 158 assertEquals(getCaCertField(), CA_CERT_PREFIX + alias); in testSaveSingleCaCertificateAlias() local 163 final String alias = "single_alias 1"; in testLoadSingleCaCertificateAlias() local 164 setCaCertField(CA_CERT_PREFIX + alias); in testLoadSingleCaCertificateAlias() 167 assertEquals(aliases[0], alias); in testLoadSingleCaCertificateAlias()
|