HomeSort by relevance Sort by last modified time
    Searched refs:mKeyStore (Results 1 - 19 of 19) sorted by null

  /frameworks/base/keystore/tests/src/android/security/
KeyStoreTest.java 63 private KeyStore mKeyStore = null;
118 mKeyStore = KeyStore.getInstance();
119 if (mKeyStore.state() != KeyStore.State.UNINITIALIZED) {
120 mKeyStore.reset();
123 KeyStore.State.UNINITIALIZED, mKeyStore.state());
129 mKeyStore.reset();
134 assertEquals(KeyStore.State.UNINITIALIZED, mKeyStore.state());
138 assertTrue(mKeyStore.password(TEST_PASSWD));
139 assertEquals(KeyStore.State.UNLOCKED, mKeyStore.state());
143 assertNull(mKeyStore.get(TEST_KEYNAME))
    [all...]
AndroidKeyStoreTest.java 68 private java.security.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.password(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/keystore/java/android/security/
AndroidKeyStore.java 75 private android.security.KeyStore mKeyStore;
107 final byte[] caBytes = mKeyStore.get(Credentials.CA_CERTIFICATE + alias);
133 byte[] certificate = mKeyStore.get(Credentials.USER_CERTIFICATE + alias);
138 certificate = mKeyStore.get(Credentials.CA_CERTIFICATE + alias);
170 final long epochMillis = mKeyStore.getmtime(alias);
319 Credentials.deleteAllTypesForAlias(mKeyStore, alias);
321 Credentials.deleteCertificateTypesForAlias(mKeyStore, alias);
327 && !mKeyStore.importKey(Credentials.USER_PRIVATE_KEY + alias, keyBytes,
329 Credentials.deleteAllTypesForAlias(mKeyStore, alias);
331 } else if (!mKeyStore.put(Credentials.USER_CERTIFICATE + alias, userCertBytes
    [all...]
AndroidKeyPairGenerator.java 57 private android.security.KeyStore mKeyStore;
78 if (mKeyStore == null || mSpec == null) {
84 && (mKeyStore.state() != KeyStore.State.UNLOCKED)) {
92 Credentials.deleteAllTypesForAlias(mKeyStore, alias);
98 if (!mKeyStore.generate(privateKeyAlias, KeyStore.UID_SELF, keyType,
111 final byte[] pubKeyBytes = mKeyStore.getPubkey(privateKeyAlias);
136 Credentials.deleteAllTypesForAlias(mKeyStore, alias);
144 Credentials.deleteAllTypesForAlias(mKeyStore, alias);
148 if (!mKeyStore.put(Credentials.USER_CERTIFICATE + alias, certBytes, KeyStore.UID_SELF,
150 Credentials.deleteAllTypesForAlias(mKeyStore, alias)
    [all...]
  /cts/tests/tests/keystore/src/android/keystore/cts/
AndroidKeyStoreTest.java 56 private KeyStore mKeyStore;
    [all...]
AndroidKeyPairGeneratorTest.java 63 private KeyStore mKeyStore;
87 mKeyStore = KeyStore.getInstance("AndroidKeyStore");
88 mKeyStore.load(null, null);
442 KeyStore.Entry entry = mKeyStore.getEntry(alias, null);
  /system/security/keystore/
keystore.cpp     [all...]
  /packages/apps/Settings/src/com/android/settings/
CredentialStorage.java 101 private final KeyStore mKeyStore = KeyStore.getInstance();
144 switch (mKeyStore.state()) {
230 if (!mKeyStore.importKey(key, value, uid, flags)) {
242 if (!mKeyStore.put(certName, certData, uid, flags)) {
252 if (!mKeyStore.put(caListName, caListData, uid, flags)) {
303 mKeyStore.reset();
393 mKeyStore.password(password);
468 mKeyStore.unlock(mOldPassword.getText().toString());
469 int error = mKeyStore.getLastError();
ChooseLockGeneric.java 87 private KeyStore mKeyStore;
97 mKeyStore = KeyStore.getInstance();
279 if (!mKeyStore.isEmpty()) {
SecuritySettings.java 100 private KeyStore mKeyStore;
276 mKeyStore = KeyStore.getInstance(); // needs to be initialized for onResume()
281 mKeyStore.isHardwareBacked() ? R.string.credential_storage_type_hardware
504 mResetCredentials.setEnabled(!mKeyStore.isEmpty());
  /packages/apps/KeyChain/src/com/android/keychain/
KeyChainService.java 83 private final KeyStore mKeyStore = KeyStore.getInstance();
93 if (!mKeyStore.grant(keystoreAlias, uid)) {
107 return mKeyStore.get(Credentials.USER_CERTIFICATE + alias);
114 if (!mKeyStore.isUnlocked()) {
116 + mKeyStore.state().toString());
KeyChainActivity.java 75 private KeyStore mKeyStore = KeyStore.getInstance();
111 if (!mKeyStore.isUnlocked()) {
138 String[] aliasArray = mKeyStore.saw(Credentials.USER_PRIVATE_KEY);
325 byte[] bytes = mKeyStore.get(Credentials.USER_CERTIFICATE + alias);
360 if (mKeyStore.isUnlocked()) {
  /packages/apps/CertInstaller/src/com/android/certinstaller/
CertInstaller.java 74 private final KeyStore mKeyStore = KeyStore.getInstance();
136 && !mKeyStore.isUnlocked());
271 if (!mKeyStore.delete(PKEY_MAP_KEY)) {
277 if (!mKeyStore.put(PKEY_MAP_KEY, bytes, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED)) {
283 byte[] bytes = mKeyStore.get(PKEY_MAP_KEY);
  /packages/apps/Settings/src/com/android/settings/vpn2/
VpnSettings.java 75 private final KeyStore mKeyStore = KeyStore.getInstance();
166 if (!mKeyStore.isUnlocked()) {
188 final List<VpnProfile> profiles = loadVpnProfiles(mKeyStore);
240 mKeyStore.put(Credentials.VPN + profile.key, profile.encode(), KeyStore.UID_SELF,
309 mKeyStore.delete(Credentials.VPN + mSelectedKey);
VpnDialog.java 43 private final KeyStore mKeyStore = KeyStore.getInstance();
307 String[] certificates = mKeyStore.saw(prefix);
  /frameworks/base/wifi/java/android/net/wifi/
WifiConfigStore.java 162 private final KeyStore mKeyStore = KeyStore.getInstance();
393 config.enterpriseConfig.removeKeys(mKeyStore);
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/security/
KeyStoreUsage.java 72 KeyStore mKeyStore;
  /frameworks/base/services/java/com/android/server/
ConnectivityService.java 214 private KeyStore mKeyStore;
490 mKeyStore = KeyStore.getInstance();
    [all...]

Completed in 442 milliseconds