/cts/tests/tests/keystore/src/android/keystore/cts/ |
KeyChainTest.java | 21 import android.security.KeyChain; 29 assertFalse("DSA must not be supported", KeyChain.isKeyAlgorithmSupported("DSA")); 30 assertTrue("EC must be supported", KeyChain.isKeyAlgorithmSupported("EC")); 31 assertTrue("RSA must be supported", KeyChain.isKeyAlgorithmSupported("RSA")); 37 KeyChain.getPrivateKey(null, null); 39 + "KeyChain.getPrivateKey(Context, String)"); 47 KeyChain.getPrivateKey(getContext(), null); 49 + "KeyChain.getPrivateKey(Context, String)."); 57 KeyChain.getPrivateKey(null, ""); 59 + "KeyChain.getPrivateKey(Context, String).") [all...] |
/build/make/target/product/ |
core.mk | 42 KeyChain \ 71 KeyChain \
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
CertificateRequestor.java | 24 import android.security.KeyChain; 28 * A headless Activity which simply calls into the framework {@link KeyChain} service to select 49 KeyChain.choosePrivateKeyAlias(
|
SSLUtils.java | 23 import android.security.KeyChain; 325 * A {@link KeyManager} that reads uses credentials stored in the system {@link KeyChain}. 334 * If for any reason retrieval of the credentials from the system {@link KeyChain} fails, 341 certificateChain = KeyChain.getCertificateChain(context, alias); 352 privateKey = KeyChain.getPrivateKey(context, alias);
|
/packages/apps/KeyChain/robotests/ |
Android.mk | 2 # KeyChain Robolectric test target. # 20 LOCAL_INSTRUMENTATION_FOR := KeyChain 39 LOCAL_TEST_PACKAGE := KeyChain
|
/packages/apps/KeyChain/support/src/com/android/keychain/tests/support/ |
KeyChainServiceTestSupport.java | 17 package com.android.keychain.tests.support; 23 import android.security.KeyChain; 72 KeyChain.KeyChainConnection connection = null; 74 connection = KeyChain.bind(KeyChainServiceTestSupport.this);
|
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
KeyChainTestActivity.java | 17 package com.android.keychain.tests; 24 import android.security.KeyChain; 51 * Simple activity based test that exercises the KeyChain API 107 KeyChain.getPrivateKey(null, null); 114 log("KeyChain failed as expected with null argument."); 118 KeyChain.getPrivateKey(this, null); 125 log("KeyChain failed as expected with null argument."); 129 KeyChain.getPrivateKey(null, ""); 136 log("KeyChain failed as expected with null argument."); 140 KeyChain.getPrivateKey(this, "") [all...] |
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
CertInstallerMain.java | 27 import android.security.KeyChain; 59 MIME_MAPPINGS.put("application/x-x509-ca-cert", KeyChain.EXTRA_CERTIFICATE); 60 MIME_MAPPINGS.put("application/x-x509-user-cert", KeyChain.EXTRA_CERTIFICATE); 61 MIME_MAPPINGS.put("application/x-x509-server-cert", KeyChain.EXTRA_CERTIFICATE); 62 MIME_MAPPINGS.put("application/x-pem-file", KeyChain.EXTRA_CERTIFICATE); 63 MIME_MAPPINGS.put("application/pkix-cert", KeyChain.EXTRA_CERTIFICATE); 64 MIME_MAPPINGS.put("application/x-pkcs12", KeyChain.EXTRA_PKCS12); 101 // Either way, we use KeyChain.EXTRA_NAME as the default name if available. 105 && (bundle.containsKey(KeyChain.EXTRA_NAME)
|
CredentialHelper.java | 27 import android.security.KeyChain; 86 String name = bundle.getString(KeyChain.EXTRA_NAME); 87 bundle.remove(KeyChain.EXTRA_NAME); 101 parseCert(getData(KeyChain.EXTRA_CERTIFICATE)); 107 outStates.putString(KeyChain.EXTRA_NAME, mName); 128 mName = savedStates.getString(KeyChain.EXTRA_NAME); 186 return mBundle.containsKey(KeyChain.EXTRA_PKCS12); 226 mBundle.put(KeyChain.EXTRA_PKCS12, data); 402 keystore.load(new ByteArrayInputStream(getData(KeyChain.EXTRA_PKCS12)),
|
/packages/apps/KeyChain/src/com/android/keychain/ |
KeyChainService.java | 17 package com.android.keychain; 35 import android.security.KeyChain; 47 import com.android.keychain.internal.GrantsDatabase; 70 private static final String TAG = "KeyChain"; 140 return KeyChain.KEY_GEN_MISSING_ALIAS; 145 return KeyChain.KEY_GEN_SUPERFLUOUS_ATTESTATION_CHALLENGE; 158 return KeyChain.KEY_GEN_FAILURE; 160 return KeyChain.KEY_GEN_SUCCESS; 163 return KeyChain.KEY_GEN_NO_SUCH_ALGORITHM; 166 return KeyChain.KEY_GEN_INVALID_ALGORITHM_PARAMETERS [all...] |
KeyChainActivity.java | 17 package com.android.keychain; 37 import android.security.KeyChain; 50 import com.android.keychain.internal.KeyInfoProvider; 67 private static final String TAG = "KeyChain"; 102 mSender = getIntent().getParcelableExtra(KeyChain.EXTRA_SENDER); 152 try (KeyChain.KeyChainConnection connection = 153 KeyChain.bind(KeyChainActivity.this)) { 200 Uri uri = getIntent().getParcelableExtra(KeyChain.EXTRA_URI); 201 String alias = getIntent().getStringExtra(KeyChain.EXTRA_ALIAS); 256 String alias = getIntent().getStringExtra(KeyChain.EXTRA_ALIAS) [all...] |
/development/samples/KeyChainDemo/src/com/example/android/keychain/ |
KeyChainDemoActivity.java | 17 package com.example.android.keychain; 25 import android.security.KeyChain; 45 public static final String PKCS12_FILENAME = "keychain.p12"; 64 private static final String KEYCHAIN_PREF = "keychain"; 69 // Request code used when starting the activity using the KeyChain install 228 byte[] keychain = new byte[bis.available()]; 229 bis.read(keychain); 231 Intent installIntent = KeyChain.createInstallIntent(); 232 installIntent.putExtra(KeyChain.EXTRA_PKCS12, keychain); [all...] |
/compatibility/cdd/9_security-model/ |
9_11_keys-and-credentials.md | 5 cryptographic operations through the [KeyChain API](https://developer.android.com/reference/android/security/KeyChain.html)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
CAInstallNotificationVerifierActivity.java | 23 import android.security.KeyChain; 60 KeyChain.createInstallIntent()));
|
KeyChainTest.java | 25 import android.security.KeyChain; 74 * Simple activity based test that exercises the KeyChain API 265 Intent intent = KeyChain.createInstallIntent(); 266 intent.putExtra(KeyChain.EXTRA_NAME, CREDENTIAL_NAME); 276 intent.putExtra(KeyChain.EXTRA_PKCS12, pkcs12.toByteArray()); 335 * supplied by KeyChain. 367 * Key manager which synchronously prompts for its aliases via KeyChain 374 KeyChain.choosePrivateKeyAlias(KeyChainTest.this, aliasCallback, 400 KeyChain.getCertificateChain(KeyChainTest.this, alias); 434 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTest.this, alias) [all...] |
/packages/apps/KeyChain/ |
Android.mk | 23 LOCAL_PACKAGE_NAME := KeyChain
|
/packages/services/Car/car_product/build/ |
car_base.mk | 33 KeyChain \
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
KeyChainTestActivity.java | 26 import android.security.KeyChain; 47 * Activity to test KeyChain key generation. The following flows are tested: * Generating a key. * 52 * select the key from the certificate selection prompt when {@code KeyChain.choosePrivateKeyAlias} 62 "com.android.cts.verifier.managedprovisioning.KEYCHAIN"; 168 KeyChain.choosePrivateKeyAlias( 210 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTestActivity.this, alias);
|
/frameworks/base/keystore/java/android/security/ |
Credentials.java | 193 Intent intent = KeyChain.createInstallIntent(); 202 Intent intent = KeyChain.createInstallIntent(); 213 Intent intent = KeyChain.createInstallIntent();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
SecurityControllerImpl.java | 40 import android.security.KeyChain; 41 import android.security.KeyChain.KeyChainConnection; 113 filter.addAction(KeyChain.ACTION_TRUST_STORE_CHANGED); 391 if (KeyChain.ACTION_TRUST_STORE_CHANGED.equals(intent.getAction())) { 401 try (KeyChainConnection conn = KeyChain.bindAsUser(mContext,
|
/packages/apps/Settings/src/com/android/settings/ |
CredentialStorage.java | 35 import android.security.KeyChain; 36 import android.security.KeyChain.KeyChainConnection; 224 return KeyChain.isBoundKeyAlgorithm(algName); 279 // KeyChain internally uses the raw alias name and only prepends USER_PRIVATE_KEY 282 // on internal implementation details of KeyChain and imitating its functionality 283 // rather than delegating to KeyChain for the certificate installation. 313 Intent broadcast = new Intent(KeyChain.ACTION_KEYCHAIN_CHANGED); 367 KeyChainConnection keyChainConnection = KeyChain.bind(CredentialStorage.this); 416 try (KeyChainConnection keyChainConnection = KeyChain.bind(CredentialStorage.this)) {
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
CertificateMonitor.java | 38 import android.security.KeyChain; 39 import android.security.KeyChain.KeyChainConnection; 73 filter.addAction(KeyChain.ACTION_TRUST_STORE_CHANGED); 153 Log.e(LOG_TAG, "Could not retrieve certificates from KeyChain service", e);
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
KeyManagementTest.java | 32 import android.security.KeyChain; 126 assertEquals(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm(), "RSA"); 152 assertEquals(KeyChain.getPrivateKey(mActivity, grant).getAlgorithm(), "RSA"); 188 assertEquals(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm(), "RSA"); 191 X509Certificate[] returnedCerts = KeyChain.getCertificateChain(mActivity, alias); 579 // And can be retrieved from KeyChain 580 X509Certificate[] fetchedCerts = KeyChain.getCertificateChain(mActivity, alias); 604 // And can be retrieved from KeyChain 605 X509Certificate[] fetchedCerts = KeyChain.getCertificateChain(mActivity, alias); 618 granted = (KeyChain.getPrivateKey(mActivity, alias) != null) [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiKeyStore.java | 23 import android.security.KeyChain; 68 return KeyChain.isBoundKeyAlgorithm(key.getAlgorithm());
|
/device/google/atv/products/ |
atv_base.mk | 78 KeyChain \
|