/frameworks/base/keystore/tests/src/android/security/ |
KeyStoreTest.java | 72 private KeyStore mKeyStore = null; 129 mKeyStore = KeyStore.getInstance(); 130 if (mKeyStore.state() != KeyStore.State.UNINITIALIZED) { 131 mKeyStore.reset(); 134 KeyStore.State.UNINITIALIZED, mKeyStore.state()); 140 mKeyStore.reset(); 145 assertEquals(KeyStore.State.UNINITIALIZED, mKeyStore.state()); 149 assertTrue(mKeyStore.onUserPasswordChanged(TEST_PASSWD)); 150 assertEquals(KeyStore.State.UNLOCKED, mKeyStore.state()); 154 assertNull(mKeyStore.get(TEST_KEYNAME)) [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiInjector.java | 41 private final KeyStore mKeyStore = KeyStore.getInstance(); 62 return mKeyStore;
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
AndroidKeyStoreTest.java | 72 private KeyStore mKeyStore; [all...] |
/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/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);
|
/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); 522 Credentials.deleteAllTypesForAlias(mKeyStore, alias, mUid); 524 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 | 100 private final KeyStore mKeyStore = KeyStore.getInstance(); 304 Credentials.deleteAllTypesForAlias(mKeyStore, spec.getKeystoreAlias(), spec.getUid()); 305 int errorCode = mKeyStore.generateKey( 330 mKeyStore, spec.getKeystoreAlias(), spec.getUid());
|
KeyStoreCryptoOperationChunkedStreamer.java | 323 private final KeyStore mKeyStore; 327 mKeyStore = keyStore; 333 return mKeyStore.update(mOperationToken, null, input); 338 return mKeyStore.finish(mOperationToken, null, signature, additionalEntropy);
|
AndroidKeyStoreCipherSpiBase.java | 67 private final KeyStore mKeyStore; 96 mKeyStore = KeyStore.getInstance(); 188 mKeyStore.abort(operationToken); 214 mKeyStore.abort(operationToken); 248 OperationResult opResult = mKeyStore.begin( 266 mKeyStore, mKey, opResult.resultCode); 285 mMainDataStreamer = createMainDataStreamer(mKeyStore, opResult.token); 287 createAdditionalAuthenticationDataStreamer(mKeyStore, opResult.token); 744 mKeyStore.abort(operationToken); 781 return mKeyStore; [all...] |
AndroidKeyStoreKeyFactorySpi.java | 41 private final KeyStore mKeyStore = KeyStore.getInstance(); 75 mKeyStore, entryAlias, keyAliasInKeystore, keystorePrivateKey.getUid());
|
/frameworks/base/keystore/tests/src/android/security/keystore/ |
AndroidKeyStoreTest.java | 63 private java.security.KeyStore mKeyStore; [all...] |
/system/security/keystore/ |
key_store_service.cpp | 63 return mKeyStore->getState(userId); 76 ResponseCode responseCode = mKeyStore->getKeyForName(&keyBlob, name8, targetUid, TYPE_GENERIC); 100 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid)); 105 return mKeyStore->put(filename.string(), &keyBlob, get_user_id(targetUid)); 114 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid)); 115 return mKeyStore->del(filename.string(), ::TYPE_ANY, get_user_id(targetUid)); 125 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid)); 139 String8 filename(mKeyStore->getKeyNameForUid(prefix8, targetUid)); 141 if (mKeyStore->list(filename, matches, get_user_id(targetUid)) != ::NO_ERROR) { 153 mKeyStore->resetUser(get_user_id(callingUid), false) [all...] |
/packages/apps/KeyChain/src/com/android/keychain/ |
KeyChainService.java | 93 private final KeyStore mKeyStore = KeyStore.getInstance(); 103 if (!mKeyStore.grant(keystoreAlias, uid)) { 119 return mKeyStore.get(Credentials.USER_CERTIFICATE + alias); 124 return mKeyStore.get(Credentials.CA_CERTIFICATE + alias); 131 if (!mKeyStore.isUnlocked()) { 133 + mKeyStore.state().toString()); 169 if (!mKeyStore.isUnlocked()) { 170 Log.e(TAG, "Keystore is " + mKeyStore.state().toString() + ". Credentials cannot" 177 if (!mKeyStore.importKey(Credentials.USER_PRIVATE_KEY + alias, privateKey, -1, 182 if (!mKeyStore.put(Credentials.USER_CERTIFICATE + alias, userCertificate, -1 [all...] |
/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 | 24 private final KeyStore mKeyStore; 31 mKeyStore = keyStore; 90 mKeyStore.getCertificateChain(mAliasMap.get(OSUCertType.Client))) { 115 return (PrivateKey) mKeyStore.getKey(mAliasMap.get(OSUCertType.PrivateKey), null);
|
OSUClient.java | 58 private final KeyStore mKeyStore; 63 mKeyStore = ks; 69 mKeyStore = ks; 75 OSUSocketFactory.getSocketFactory(mKeyStore, null, OSUManager.FLOW_PROVISIONING, 163 km, mKeyStore, null, OSUManager.FLOW_PROVISIONING)) { 199 retrieveCerts(moData.getMOTree().getRoot(), certs, network, km, mKeyStore); 279 km, mKeyStore, homeSP, flowType)) { 385 OSUSocketFactory.getSocketFactory(mKeyStore, homeSP, flowType, network, 389 OSUSocketFactory.getSocketFactory(mKeyStore, homeSP, flowType, network,
|
OSUManager.java | 104 private final KeyStore mKeyStore; 129 mKeyStore = ks; 240 return mKeyStore; 560 mProvisioningThread = new OSUThread(osuInfo, this, getKeyManager(null, mKeyStore)); 776 getKeyManager(homeSP, mKeyStore), [all...] |
OSUSocketFactory.java | 216 private final KeyStore mKeyStore; 223 mKeyStore = ks; 247 for (X509Certificate cert : getRootCerts(mKeyStore)) { 254 X509Certificate cert = getCert(mKeyStore, prefix + mHomeSP.getFQDN()); 256 cert = getCert(mKeyStore, OSUManager.CERT_SHARED_ALIAS + mHomeSP.getFQDN()); 259 for (X509Certificate root : getRootCerts(mKeyStore)) {
|
/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)) {
|
/packages/apps/Settings/src/com/android/settings/ |
CredentialStorage.java | 108 private final KeyStore mKeyStore = KeyStore.getInstance(); 143 if (ACTION_UNLOCK.equals(action) && mKeyStore.state() == KeyStore.State.UNINITIALIZED) { 160 switch (mKeyStore.state()) { 269 if (!mKeyStore.importKey(key, value, uid, flags)) { 281 if (!mKeyStore.put(certName, certData, uid, flags)) { 291 if (!mKeyStore.put(caListName, caListData, uid, flags)) { 469 mKeyStore.unlock(password); 551 mKeyStore.unlock(mOldPassword.getText().toString()); 552 int error = mKeyStore.getLastError();
|
/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);
|