/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...] |
/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/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...] |
/build/target/product/ |
core.mk | 41 KeyChain \
|
/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); 396 keystore.load(new ByteArrayInputStream(getData(KeyChain.EXTRA_PKCS12)),
|
CertInstaller.java | 32 import android.security.KeyChain; 33 import android.security.KeyChain.KeyChainConnection; 232 KeyChainConnection keyChainConnection = KeyChain.bind(CertInstaller.this);
|
/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...] |
/packages/services/Car/car_product/build/ |
car_base.mk | 34 KeyChain \
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
KeyManagementTest.java | 24 import android.security.KeyChain; 100 assertEquals(KeyChain.getPrivateKey(getActivity(), alias).getAlgorithm(), "RSA"); 126 assertEquals(KeyChain.getPrivateKey(getActivity(), grant).getAlgorithm(), "RSA"); 156 assertEquals(KeyChain.getPrivateKey(getActivity(), alias).getAlgorithm(), "RSA"); 159 X509Certificate[] returnedCerts = KeyChain.getCertificateChain(getActivity(), alias); 226 granted = (KeyChain.getPrivateKey(getActivity(), alias) != null); 288 KeyChain.choosePrivateKeyAlias(getActivity(), this,
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
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/src/com/android/keychain/ |
KeyChainActivity.java | 17 package com.android.keychain; 38 import android.security.KeyChain; 65 private static final String TAG = "KeyChain"; 100 mSender = getIntent().getParcelableExtra(KeyChain.EXTRA_SENDER); 181 Uri uri = getIntent().getParcelableExtra(KeyChain.EXTRA_URI); 182 String alias = getIntent().getStringExtra(KeyChain.EXTRA_ALIAS); 242 String alias = getIntent().getStringExtra(KeyChain.EXTRA_ALIAS); 286 Uri uri = getIntent().getParcelableExtra(KeyChain.EXTRA_URI); 435 getIntent().getIBinderExtra(KeyChain.EXTRA_RESPONSE)); 453 KeyChain.KeyChainConnection connection = KeyChain.bind(KeyChainActivity.this) [all...] |
KeyChainService.java | 17 package com.android.keychain; 36 import android.security.KeyChain; 55 private static final String TAG = "KeyChain"; 479 Intent intent = new Intent(KeyChain.ACTION_STORAGE_CHANGED);
|
/packages/apps/KeyChain/ |
Android.mk | 23 LOCAL_PACKAGE_NAME := KeyChain
|
/frameworks/base/keystore/java/android/security/ |
Credentials.java | 191 Intent intent = KeyChain.createInstallIntent(); 200 Intent intent = KeyChain.createInstallIntent(); 211 Intent intent = KeyChain.createInstallIntent();
|
KeyChain.java | 55 * The {@code KeyChain} class provides access to private keys and 58 * <p>Applications accessing the {@code KeyChain} normally go through 92 public final class KeyChain { 97 public static final String ACCOUNT_TYPE = "com.android.keychain"; 100 * Package name for KeyChain chooser. 102 private static final String KEYCHAIN_PACKAGE = "com.android.keychain"; 107 private static final String ACTION_CHOOSER = "com.android.keychain.CHOOSER"; 461 * Returns {@code true} if the current device's {@code KeyChain} supports a 473 * Returns {@code true} if the current device's {@code KeyChain} binds any 482 * PrivateKey key = ...; // private key from KeyChain [all...] |
/packages/apps/Settings/src/com/android/settings/ |
UserCredentialsSettings.java | 34 import android.security.KeyChain; 35 import android.security.KeyChain.KeyChainConnection; 168 final KeyChainConnection conn = KeyChain.bind(getContext()); 170 IKeyChainService keyChain = conn.getService(); 172 keyChain.removeKeyPair(alias); 180 Log.w(TAG, "Connecting to keychain", e);
|
CredentialStorage.java | 35 import android.security.KeyChain; 36 import android.security.KeyChain.KeyChainConnection; 219 return KeyChain.isBoundKeyAlgorithm(algName); 346 KeyChainConnection keyChainConnection = KeyChain.bind(CredentialStorage.this);
|
TrustedCredentialsSettings.java | 39 import android.security.KeyChain; 40 import android.security.KeyChain.KeyChainConnection; 695 KeyChainConnection keyChainConnection = KeyChain.bindAsUser(mContext, 728 X509Certificate cert = KeyChain.toCertificate(encodedCertificate); [all...] |
/device/google/atv/products/ |
atv_base.mk | 71 KeyChain \
|
/packages/apps/Email/src/com/android/email/view/ |
CertificateSelector.java | 24 import android.security.KeyChain; 37 * A simple view that can be used to select a certificate from the system {@link KeyChain}.
|
/frameworks/base/core/java/android/app/admin/ |
DeviceAdminReceiver.java | 31 import android.security.KeyChain; 559 * @see KeyChain#choosePrivateKeyAlias
|
/development/samples/Vault/src/com/example/android/vault/ |
VaultProvider.java | 38 import android.security.KeyChain; 133 mHardwareBacked = KeyChain.isBoundKeyAlgorithm("RSA");
|