HomeSort by relevance Sort by last modified time
    Searched full:mkeystore (Results 1 - 25 of 57) sorted by null

1 2 3

  /tools/tradefederation/core/tests/src/com/android/tradefed/util/keystore/
JSONFileKeyStoreClientTest.java 32 JSONFileKeyStoreClient mKeyStore = null;
36 mKeyStore = new JSONFileKeyStoreClient();
87 mKeyStore.setKeyStore(null);
88 assertFalse("Key should not exist in null key store", mKeyStore.containsKey("test"));
93 mKeyStore.setKeyStore(data);
95 mKeyStore.containsKey("invalid key"));
100 mKeyStore.setKeyStore(data);
101 assertTrue("Failed to fetch valid key in key store", mKeyStore.containsKey("key1"));
106 mKeyStore.setKeyStore(data);
108 mKeyStore.fetchKey("invalid key"))
    [all...]
  /cts/tests/tests/keystore/src/android/keystore/cts/
AndroidKeyStoreTest.java 73 private KeyStore mKeyStore;
    [all...]
  /frameworks/base/core/java/android/security/net/config/
KeyStoreCertificateSource.java 36 private final KeyStore mKeyStore;
41 mKeyStore = ks;
58 Set<X509Certificate> certificates = new ArraySet<>(mKeyStore.size());
59 for (Enumeration<String> en = mKeyStore.aliases(); en.hasMoreElements();) {
61 X509Certificate cert = (X509Certificate) mKeyStore.getCertificate(alias);
  /packages/apps/KeyChain/support/src/com/android/keychain/tests/support/
KeyChainServiceTestSupport.java 30 private final KeyStore mKeyStore = KeyStore.getInstance();
36 return mKeyStore.reset();
40 return mKeyStore.onUserPasswordChanged(password);
44 return mKeyStore.put(key, value, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED);
48 return mKeyStore.importKey(key, value, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED);
  /frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
WiFiKeyManager.java 27 private final KeyStore mKeyStore;
31 mKeyStore = keyStore;
42 Enumeration<String> aliases = mKeyStore.aliases();
45 Certificate cert = mKeyStore.getCertificate(alias);
46 if ((cert instanceof X509Certificate) && mKeyStore.getKey(alias, null) != null) {
151 for (Certificate certificate : mKeyStore.getCertificateChain(alias)) {
166 return (PrivateKey) mKeyStore.getKey(alias, null);
ClientKeyManager.java 25 private final KeyStore mKeyStore;
32 mKeyStore = keyStore;
89 Certificate cert = mKeyStore.getCertificate(alias);
110 return (PrivateKey) mKeyStore.getKey(mAliasMap.get(OSUCertType.PrivateKey), null);
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
WifiKeyStore.java 49 private final KeyStore mKeyStore;
52 mKeyStore = keyStore;
98 ret = mKeyStore.importKey(privKeyName, privKeyData, Process.WIFI_UID,
108 mKeyStore.delete(privKeyName, Process.WIFI_UID);
131 mKeyStore.delete(privKeyName, Process.WIFI_UID);
132 mKeyStore.delete(userCertName, Process.WIFI_UID);
136 mKeyStore.delete(Credentials.CA_CERTIFICATE + addedAlias, Process.WIFI_UID);
146 mKeyStore.delete(Credentials.CA_CERTIFICATE + oldAlias, Process.WIFI_UID);
187 return mKeyStore.put(name, certData, Process.WIFI_UID, KeyStore.FLAG_NONE);
204 return mKeyStore.importKey(name, privKeyData, Process.WIFI_UID, KeyStore.FLAG_NONE)
    [all...]
  /system/security/keystore/
key_store_service.cpp 136 return ResponseCode(mKeyStore->getState(userId));
150 mKeyStore->getKeyForName(&keyBlob, name8, targetUid, TYPE_GENERIC);
179 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid, ::TYPE_GENERIC));
184 return mKeyStore->put(filename.string(), &keyBlob, get_user_id(targetUid));
194 auto filename = mKeyStore->getBlobFileNameIfExists(name8, targetUid, ::TYPE_ANY);
197 ResponseCode result = mKeyStore->del(filename.value().string(), ::TYPE_ANY,
203 filename = mKeyStore->getBlobFileNameIfExists(name8, targetUid, ::TYPE_KEY_CHARACTERISTICS);
205 return mKeyStore->del(filename.value().string(), ::TYPE_KEY_CHARACTERISTICS,
217 auto filename = mKeyStore->getBlobFileNameIfExists(String8(name), targetUid, ::TYPE_ANY);
228 String8 filename(mKeyStore->getKeyNameForUid(prefix8, targetUid, TYPE_ANY))
    [all...]
  /frameworks/base/keystore/java/android/security/keystore/
AndroidKeyStoreHmacSpi.java 71 private final KeyStore mKeyStore = KeyStore.getInstance();
131 mKeyStore.abort(operationToken);
141 mKeyStore.abort(operationToken);
166 OperationResult opResult = mKeyStore.begin(
185 mKeyStore, mKey, opResult.resultCode);
199 mKeyStore, mOperationToken));
254 mKeyStore.abort(operationToken);
AndroidKeyStoreSpi.java 86 private KeyStore mKeyStore;
95 mKeyStore, privateKeyAlias, mUid);
99 mKeyStore, secretKeyAlias, mUid);
119 final byte[] caBytes = mKeyStore.get(Credentials.CA_CERTIFICATE + alias, mUid);
145 byte[] encodedCert = mKeyStore.get(Credentials.USER_CERTIFICATE + alias, mUid);
150 encodedCert = mKeyStore.get(Credentials.CA_CERTIFICATE + alias, mUid);
187 if (mKeyStore.contains(privateKeyAlias, mUid)) {
239 final long epochMillis = mKeyStore.getmtime(alias, mUid);
526 Credentials.deleteAllTypesForAlias(mKeyStore, alias, mUid);
528 int errorCode = mKeyStore.importKey
    [all...]
AndroidKeyStoreSignatureSpiBase.java 47 private final KeyStore mKeyStore;
72 mKeyStore = KeyStore.getInstance();
157 mKeyStore.abort(operationToken);
181 mKeyStore.abort(operationToken);
202 OperationResult opResult = mKeyStore.begin(
220 mKeyStore, mKey, opResult.resultCode);
232 mMessageStreamer = createMainDataStreamer(mKeyStore, opResult.token);
399 return mKeyStore;
AndroidKeyStoreKeyGeneratorSpi.java 101 private final KeyStore mKeyStore = KeyStore.getInstance();
312 Credentials.deleteAllTypesForAlias(mKeyStore, spec.getKeystoreAlias(), spec.getUid());
313 int errorCode = mKeyStore.generateKey(
338 mKeyStore, spec.getKeystoreAlias(), spec.getUid());
AndroidKeyStoreKeyPairGeneratorSpi.java 152 private KeyStore mKeyStore;
358 mKeyStore = KeyStore.getInstance();
382 mKeyStore = null;
450 if (mKeyStore == null || mSpec == null) {
456 && (mKeyStore.state() != KeyStore.State.UNLOCKED)) {
466 Credentials.deleteAllTypesForAlias(mKeyStore, mEntryAlias, mEntryUid);
480 Credentials.deleteAllTypesForAlias(mKeyStore, mEntryAlias, mEntryUid);
501 int errorCode = mKeyStore.generateKey(privateKeyAlias, args, additionalEntropy,
512 mKeyStore, privateKeyAlias, mEntryUid);
575 int insertErrorCode = mKeyStore.insert
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
LockSettingsServiceTestable.java 40 private KeyStore mKeyStore;
51 mKeyStore = keyStore;
90 return mKeyStore;
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/export/
KeystoreSelectionPage.java 48 private Text mKeystore;
83 mKeystore = new Text(composite, SWT.BORDER);
84 mKeystore.setLayoutData(gd = new GridData(GridData.FILL_HORIZONTAL));
101 mKeystore.setText(fileName);
138 mKeystore.addModifyListener(new ModifyListener() {
141 mWizard.setKeystore(mKeystore.getText().trim());
184 mKeystore.setText(keystore);
211 String keystore = mKeystore.getText().trim();
  /packages/apps/KeyChain/src/com/android/keychain/
KeyChainService.java 94 private final KeyStore mKeyStore = KeyStore.getInstance();
104 return mKeyStore.grant(keystoreAlias, uid);
109 return mKeyStore.get(Credentials.USER_CERTIFICATE + alias);
114 return mKeyStore.get(Credentials.CA_CERTIFICATE + alias);
121 if (!mKeyStore.isUnlocked()) {
123 + mKeyStore.state().toString());
164 if (!mKeyStore.isUnlocked()) {
165 Log.e(TAG, "Keystore is " + mKeyStore.state().toString() + ". Credentials cannot"
172 if (!mKeyStore.importKey(Credentials.USER_PRIVATE_KEY + alias, privateKey, -1,
177 if (!mKeyStore.put(Credentials.USER_CERTIFICATE + alias, userCertificate, -1
    [all...]
  /external/sl4a/Common/src/com/googlecode/android_scripting/facade/
CertInstallerHelper.java 66 private KeyStore mKeyStore = KeyStore.getInstance();
72 mKeyStore.reset();
73 mKeyStore.onUserPasswordChanged(CERT_STORE_PASSWORD);
182 if (!mKeyStore.importKey(key, value, mUid, flags)) {
193 if (!mKeyStore.put(certName, certData, mUid, flags)) {
205 if (!mKeyStore.put(caListName, caListData, mUid, flags)) {
  /packages/apps/Settings/tests/app/src/com/android/settings/vpn2/
CertInstallerHelper.java 67 private KeyStore mKeyStore = KeyStore.getInstance();
73 mKeyStore.reset();
74 mKeyStore.onUserPasswordChanged(CERT_STORE_PASSWORD);
183 if (!mKeyStore.importKey(key, value, mUid, flags)) {
194 if (!mKeyStore.put(certName, certData, mUid, flags)) {
206 if (!mKeyStore.put(caListName, caListData, mUid, flags)) {
  /frameworks/base/packages/Osu/src/com/android/hotspot2/flow/
PlatformAdapter.java 72 private final KeyStore mKeyStore;
90 mKeyStore = ks;
205 return mKeyStore;
274 ? new ClientKeyManager(homeSP, mKeyStore) : new WiFiKeyManager(mKeyStore);
296 Set<X509Certificate> rootCerts = OSUSocketFactory.getRootCerts(mKeyStore);
302 mKeyStore.setKeyEntry(CERT_CLT_KEY_ALIAS + homeSP.getFQDN(),
304 mKeyStore.setCertificateEntry(CERT_CLT_CERT_ALIAS + homeSP.getFQDN(), cltCert);
311 mKeyStore.setCertificateEntry(CERT_SHARED_ALIAS + homeSP.getFQDN(),
316 mKeyStore.setCertificateEntry(CERT_REM_ALIAS + homeSP.getFQDN()
    [all...]
  /packages/apps/Settings/src/com/android/settings/
EncryptionAndCredential.java 61 private KeyStore mKeyStore;
108 mKeyStore = KeyStore.getInstance(); // needs to be initialized for onResume()
129 mKeyStore.isHardwareBacked() ? R.string.credential_storage_type_hardware
153 mResetCredentials.setEnabled(!mKeyStore.isEmpty());
CredentialStorage.java 111 private final KeyStore mKeyStore = KeyStore.getInstance();
146 if (ACTION_UNLOCK.equals(action) && mKeyStore.state() == KeyStore.State.UNINITIALIZED) {
163 switch (mKeyStore.state()) {
274 if (!mKeyStore.importKey(key, value, uid, flags)) {
286 if (!mKeyStore.put(certName, certData, uid, flags)) {
296 if (!mKeyStore.put(caListName, caListData, uid, flags)) {
454 mKeyStore.unlock(password);
540 mKeyStore.unlock(mOldPassword.getText().toString());
541 int error = mKeyStore.getLastError();
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
PasspointProviderTest.java 78 @Mock WifiKeyStore mKeyStore;
95 return new PasspointProvider(config, mKeyStore, mSimAccessor, PROVIDER_ID, CREATOR_UID);
239 when(mKeyStore.putCertInKeyStore(CA_CERTIFICATE_NAME, FakeKeys.CA_CERT0))
241 when(mKeyStore.putKeyInKeyStore(CLIENT_PRIVATE_KEY_NAME, FakeKeys.RSA_KEY1))
243 when(mKeyStore.putCertInKeyStore(CLIENT_CERTIFICATE_NAME, FakeKeys.CLIENT_CERT))
279 when(mKeyStore.putCertInKeyStore(CA_CERTIFICATE_NAME, FakeKeys.CA_CERT0))
281 when(mKeyStore.putKeyInKeyStore(CLIENT_PRIVATE_KEY_NAME, FakeKeys.RSA_KEY1))
283 when(mKeyStore.putCertInKeyStore(CLIENT_CERTIFICATE_NAME, FakeKeys.CLIENT_CERT))
317 when(mKeyStore.putCertInKeyStore(CA_CERTIFICATE_NAME, FakeKeys.CA_CERT0))
319 when(mKeyStore.putKeyInKeyStore(CLIENT_PRIVATE_KEY_NAME, FakeKeys.RSA_KEY1)
    [all...]
  /developers/build/prebuilts/gradle/FingerprintDialog/Application/src/main/java/com/example/android/fingerprintdialog/
MainActivity.java 69 private KeyStore mKeyStore;
79 mKeyStore = KeyStore.getInstance("AndroidKeyStore");
163 mKeyStore.load(null);
164 SecretKey key = (SecretKey) mKeyStore.getKey(keyName, null);
238 mKeyStore.load(null);
  /developers/samples/android/security/FingerprintDialog/Application/src/main/java/com/example/android/fingerprintdialog/
MainActivity.java 69 private KeyStore mKeyStore;
79 mKeyStore = KeyStore.getInstance("AndroidKeyStore");
163 mKeyStore.load(null);
164 SecretKey key = (SecretKey) mKeyStore.getKey(keyName, null);
238 mKeyStore.load(null);
  /development/samples/browseable/FingerprintDialog/src/com.example.android.fingerprintdialog/
MainActivity.java 69 private KeyStore mKeyStore;
79 mKeyStore = KeyStore.getInstance("AndroidKeyStore");
163 mKeyStore.load(null);
164 SecretKey key = (SecretKey) mKeyStore.getKey(keyName, null);
238 mKeyStore.load(null);

Completed in 1771 milliseconds

1 2 3