Home
last modified time | relevance | path

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

123456

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreSpi.java90 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 …]
DAndroidKeyStoreRSAPublicKey.java31 …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()
DAndroidKeyStoreECPublicKey.java33 …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()
DAndroidKeyStorePrivateKey.java28 public AndroidKeyStorePrivateKey(String alias, int uid, String algorithm) { in AndroidKeyStorePrivateKey() argument
29 super(alias, uid, algorithm); in AndroidKeyStorePrivateKey()
DAndroidKeyStoreSecretKey.java28 public AndroidKeyStoreSecretKey(String alias, int uid, String algorithm) { in AndroidKeyStoreSecretKey() argument
29 super(alias, uid, algorithm); in AndroidKeyStoreSecretKey()
DAndroidKeyStoreRSAPrivateKey.java32 public AndroidKeyStoreRSAPrivateKey(String alias, int uid, BigInteger modulus) { in AndroidKeyStoreRSAPrivateKey() argument
33 super(alias, uid, KeyProperties.KEY_ALGORITHM_RSA); in AndroidKeyStoreRSAPrivateKey()
DAndroidKeyStoreECPrivateKey.java31 public AndroidKeyStoreECPrivateKey(String alias, int uid, ECParameterSpec params) { in AndroidKeyStoreECPrivateKey() argument
32 super(alias, uid, KeyProperties.KEY_ALGORITHM_EC); in AndroidKeyStoreECPrivateKey()
DAndroidKeyStorePublicKey.java31 … public AndroidKeyStorePublicKey(String alias, int uid, String algorithm, byte[] x509EncodedForm) { in AndroidKeyStorePublicKey() argument
32 super(alias, uid, algorithm); in AndroidKeyStorePublicKey()
/frameworks/base/keystore/java/android/security/
DIKeyChainService.aidl28 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
DCredentials.java224 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 …]
DKeyChain.java262 @Nullable String host, int port, @Nullable String alias) { in choosePrivateKeyAlias() argument
269 choosePrivateKeyAlias(activity, response, keyTypes, issuers, uri, alias); in choosePrivateKeyAlias()
310 @Nullable Uri uri, @Nullable String alias) { in choosePrivateKeyAlias() argument
337 intent.putExtra(EXTRA_ALIAS, alias); in choosePrivateKeyAlias()
348 @Override public void alias(String alias) { in alias() method in KeyChain.AliasResponse
349 keyChainAliasResponse.alias(alias); in alias()
366 public static PrivateKey getPrivateKey(@NonNull Context context, @NonNull String alias) in getPrivateKey() argument
368 if (alias == null) { in getPrivateKey()
374 final String keyId = keyChainService.requestPrivateKey(alias); in getPrivateKey()
411 @NonNull String alias) throws KeyChainException, InterruptedException { in getCertificateChain() argument
[all …]
DKeyStore.java419 public int generateKey(String alias, KeymasterArguments args, byte[] entropy, int uid, in generateKey() argument
422 return mBinder.generateKey(alias, args, entropy, uid, flags, outCharacteristics); in generateKey()
429 public int generateKey(String alias, KeymasterArguments args, byte[] entropy, int flags, in generateKey() argument
431 return generateKey(alias, args, entropy, UID_SELF, flags, outCharacteristics); in generateKey()
434 public int getKeyCharacteristics(String alias, KeymasterBlob clientId, KeymasterBlob appId, in getKeyCharacteristics() argument
437 return mBinder.getKeyCharacteristics(alias, clientId, appId, uid, outCharacteristics); in getKeyCharacteristics()
444 public int getKeyCharacteristics(String alias, KeymasterBlob clientId, KeymasterBlob appId, in getKeyCharacteristics() argument
446 return getKeyCharacteristics(alias, clientId, appId, UID_SELF, outCharacteristics); in getKeyCharacteristics()
449 public int importKey(String alias, KeymasterArguments args, int format, byte[] keyData, in importKey() argument
452 return mBinder.importKey(alias, args, format, keyData, uid, flags, in importKey()
[all …]
DIKeyChainAliasCallback.aidl25 void alias(String alias); in alias() argument
DKeyChainAliasCallback.java30 public void alias(@Nullable String alias); in alias() argument
/frameworks/base/docs/html/guide/topics/manifest/
Dactivity-alias-element.jd1 page.title=<activity-alias>
8 <dd><pre class="stx">&lt;activity-alias android:<a href="#enabled">enabled</a>=["true" | "false"]
16 &lt;/activity-alias&gt;</pre></dd>
26 <dd itemprop="description">An alias for an activity, named by the {@code targetActivity}
28 alias and it must be declared before the alias in the manifest.
31 The alias presents the target activity as a independent entity.
34 can activate the target through the alias and how the system
35 treats the alias. For example, the intent filters on the alias may
45 With the exception of {@code targetActivity}, {@code <activity-alias>}
48 to the alias. However, for attributes not in the subset, the values set for
[all …]
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DClientKeyManager.java63 String alias = mAliasMap.get(OSUCertType.Client); in getClientAliases() local
64 return alias != null ? new String[]{alias} : null; in getClientAliases()
81 public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() argument
83 if (!mAliasMap.get(OSUCertType.Client).equals(alias)) { in getCertificateChain()
84 Log.w(OSUManager.TAG, "Bad cert alias requested: '" + alias + "'"); in getCertificateChain()
100 } else if (sTempAlias.equals(alias)) { in getCertificateChain()
103 Log.w(OSUManager.TAG, "Bad cert alias requested: '" + alias + "'"); in getCertificateChain()
109 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() argument
111 if (!mAliasMap.get(OSUCertType.Client).equals(alias)) { in getPrivateKey()
112 Log.w(OSUManager.TAG, "Bad key alias requested: '" + alias + "'"); in getPrivateKey()
[all …]
DWiFiKeyManager.java44 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/
DPackageKeySetData.java53 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/
DProjectionMap.java37 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/
DIKeystoreService.aidl60 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/
DTrustedCertificateStoreAdapter.java78 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/graphics/java/android/graphics/
DFontListParser.java204 Alias alias = new Alias(); in readAlias() local
205 alias.name = parser.getAttributeValue(null, "name"); in readAlias()
206 alias.toName = parser.getAttributeValue(null, "to"); in readAlias()
209 alias.weight = 400; in readAlias()
211 alias.weight = Integer.parseInt(weightStr); in readAlias()
214 return alias; in readAlias()
/frameworks/base/wifi/java/android/net/wifi/
DWifiEnterpriseConfig.java551 public static String encodeCaCertificateAlias(String alias) { in encodeCaCertificateAlias() argument
552 byte[] bytes = alias.getBytes(StandardCharsets.UTF_8); in encodeCaCertificateAlias()
564 public static String decodeCaCertificateAlias(String alias) { in decodeCaCertificateAlias() argument
565 byte[] data = new byte[alias.length() >> 1]; in decodeCaCertificateAlias()
566 for (int n = 0, position = 0; n < alias.length(); n += 2, position++) { in decodeCaCertificateAlias()
567 data[position] = (byte) Integer.parseInt(alias.substring(n, n + 2), 16); in decodeCaCertificateAlias()
573 return alias; in decodeCaCertificateAlias()
586 public void setCaCertificateAlias(String alias) { in setCaCertificateAlias() argument
587 setFieldValue(CA_CERT_KEY, alias, CA_CERT_PREFIX); in setCaCertificateAlias()
772 public void setClientCertificateAlias(String alias) { in setClientCertificateAlias() argument
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/android/net/wifi/
DWifiEnterpriseConfigTest.java71 final String alias = "single_alias 0"; in testSaveSingleCaCertificateAlias() local
72 mEnterpriseConfig.setCaCertificateAliases(new String[] {alias}); in testSaveSingleCaCertificateAlias()
73 assertEquals(getCaCertField(), CA_CERT_PREFIX + alias); in testSaveSingleCaCertificateAlias() local
78 final String alias = "single_alias 1"; in testLoadSingleCaCertificateAlias() local
79 setCaCertField(CA_CERT_PREFIX + alias); in testLoadSingleCaCertificateAlias()
82 assertEquals(aliases[0], alias); in testLoadSingleCaCertificateAlias()
/frameworks/base/services/core/java/com/android/server/display/
DWifiDisplayAdapter.java238 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()

123456