Home
last modified time | relevance | path

Searched refs:KeyStore (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeyStoreProxyImpl.java21 import java.security.KeyStore;
34 private final KeyStore mKeyStore;
39 public KeyStoreProxyImpl(KeyStore keyStore) { in KeyStoreProxyImpl()
55 public void setEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam) in setEntry()
71 public static KeyStore getAndLoadAndroidKeyStore() throws KeyStoreException { in getAndLoadAndroidKeyStore()
72 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in getAndLoadAndroidKeyStore()
DKeyStoreProxy.java20 import java.security.KeyStore;
41 void setEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam) in setEntry()
DPlatformKeyManager.java36 import java.security.KeyStore;
439 new KeyStore.SecretKeyEntry(secretKey), in generateAndLoadKey()
443 new KeyStore.SecretKeyEntry(secretKey), in generateAndLoadKey()
471 private static KeyStore getAndLoadAndroidKeyStore() throws KeyStoreException { in getAndLoadAndroidKeyStore()
472 KeyStore keyStore = KeyStore.getInstance(KeyStoreProxyImpl.ANDROID_KEY_STORE_PROVIDER); in getAndLoadAndroidKeyStore()
/frameworks/base/keystore/java/android/security/
DKeyStore.java30 public class KeyStore { class
49 private static final KeyStore KEY_STORE = new KeyStore();
52 public static KeyStore getInstance() { in getInstance()
62 return KeyStore.State.UNINITIALIZED; in state()
64 return KeyStore.State.UNLOCKED; in state()
66 return KeyStore.State.LOCKED; in state()
/frameworks/base/services/core/java/com/android/server/locksettings/
DRebootEscrowKeyStoreManager.java29 import java.security.KeyStore;
66 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in getKeyStoreEncryptionKeyLocked()
67 KeyStore.LoadStoreParameter loadStoreParameter = null; in getKeyStoreEncryptionKeyLocked()
88 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in clearKeyStoreEncryptionKey()
89 KeyStore.LoadStoreParameter loadStoreParameter = null; in clearKeyStoreEncryptionKey()
DSyntheticPasswordCrypto.java31 import java.security.KeyStore;
132 KeyStore keyStore = getKeyStore(); in decryptBlobV1()
153 private static KeyStore getKeyStore() in getKeyStore()
155 KeyStore keyStore = KeyStore.getInstance(androidKeystoreProviderName()); in getKeyStore()
162 final KeyStore keyStore = getKeyStore(); in decryptBlob()
185 final KeyStore keyStore = getKeyStore(); in createBlob()
197 new KeyStore.SecretKeyEntry(secretKey), in createBlob()
212 KeyStore keyStore; in destroyBlobKey()
DManagedProfilePasswordCache.java33 import java.security.KeyStore;
69 private final KeyStore mKeyStore;
72 public ManagedProfilePasswordCache(KeyStore keyStore, UserManager userManager) { in ManagedProfilePasswordCache()
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreProvider.java22 import android.security.KeyStore;
87 public static java.security.KeyStore getKeyStoreForUid(int uid) in getKeyStoreForUid()
89 final java.security.KeyStore.LoadStoreParameter loadParameter = in getKeyStoreForUid()
92 java.security.KeyStore result = java.security.KeyStore.getInstance(PROVIDER_NAME); in getKeyStoreForUid()
DAttestationUtils.java29 import java.security.KeyStore;
165 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in attestDeviceIds()
DKeyStoreCryptoOperation.java19 import android.security.KeyStore;
/frameworks/base/core/tests/coretests/src/android/net/http/
DX509TrustManagerExtensionsTest.java19 import java.security.KeyStore;
53 String defaultType = KeyStore.getDefaultType(); in testGoodCast()
54 TrustManagerImpl tmi = new TrustManagerImpl(KeyStore.getInstance(defaultType)); in testGoodCast()
61 String defaultKeystoreType = KeyStore.getDefaultType(); in testNormalUseCase()
62 tmf.init(KeyStore.getInstance(defaultKeystoreType)); in testNormalUseCase()
/frameworks/base/core/java/org/apache/http/conn/ssl/
DSSLSocketFactory.java48 import java.security.KeyStore;
192 final KeyStore keystore, in SSLSocketFactory()
194 final KeyStore truststore, in SSLSocketFactory()
218 final KeyStore keystore, in SSLSocketFactory()
220 final KeyStore truststore) in SSLSocketFactory()
226 public SSLSocketFactory(final KeyStore keystore, final String keystorePassword) in SSLSocketFactory()
232 public SSLSocketFactory(final KeyStore truststore) in SSLSocketFactory()
266 private static KeyManager[] createKeyManagers(final KeyStore keystore, final String password) in createKeyManagers()
278 private static TrustManager[] createTrustManagers(final KeyStore keystore) in createTrustManagers()
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreLoadStoreParameter.java21 import java.security.KeyStore;
22 import java.security.KeyStore.ProtectionParameter;
27 public class AndroidKeyStoreLoadStoreParameter implements KeyStore.LoadStoreParameter {
DAndroidKeyStoreKeyFactorySpi.java19 import android.security.KeyStore;
42 private final KeyStore mKeyStore = KeyStore.getInstance();
DAndroidKeyStoreSpi.java51 import java.security.KeyStore.Entry;
52 import java.security.KeyStore.LoadStoreParameter;
53 import java.security.KeyStore.PrivateKeyEntry;
54 import java.security.KeyStore.ProtectionParameter;
55 import java.security.KeyStore.SecretKeyEntry;
330 java.security.KeyStore.ProtectionParameter param) throws KeyStoreException { in setPrivateKeyEntry()
595 java.security.KeyStore.ProtectionParameter param) in setSecretKeyEntry()
811 java.security.KeyStore.ProtectionParameter param) throws KeyStoreException { in setWrappedKeyEntry()
1159 if (entry instanceof java.security.KeyStore.TrustedCertificateEntry) { in engineSetEntry()
1160 java.security.KeyStore.TrustedCertificateEntry trE = in engineSetEntry()
[all …]
DKeyStoreCryptoOperationStreamer.java19 import android.security.KeyStore;
DKeyStoreCryptoOperationUtils.java23 import android.security.KeyStore;
141 if (e.getErrorCode() == KeyStore.NO_ERROR) { in getExceptionForCipherInit()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsServiceTestable.java31 import android.security.KeyStore;
46 private KeyStore mKeyStore;
56 public MockInjector(Context context, LockSettingsStorage storage, KeyStore keyStore, in MockInjector()
106 public KeyStore getKeyStore() { in getKeyStore()
159 java.security.KeyStore ks) { in getManagedProfilePasswordCache()
168 LockSettingsStorage storage, FakeGateKeeperService gatekeeper, KeyStore keystore, in LockSettingsServiceTestable()
/frameworks/base/core/java/android/security/net/config/
DKeyStoreConfigSource.java20 import java.security.KeyStore;
31 public KeyStoreConfigSource(KeyStore ks) { in KeyStoreConfigSource()
DKeyStoreCertificateSource.java20 import java.security.KeyStore;
36 private final KeyStore mKeyStore;
40 public KeyStoreCertificateSource(KeyStore ks) { in KeyStoreCertificateSource()
DNetworkSecurityTrustManager.java27 import java.security.KeyStore;
58 KeyStore store = KeyStore.getInstance(KeyStore.getDefaultType()); in NetworkSecurityTrustManager()
DRootTrustManagerFactorySpi.java22 import java.security.KeyStore;
52 public void engineInit(KeyStore ks) throws KeyStoreException { in engineInit()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyGeneratorTest.java42 import java.security.KeyStore;
88 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in tearDown()
DPlatformKeyManagerTest.java56 import java.security.KeyStore;
92 @Captor private ArgumentCaptor<KeyStore.ProtectionParameter> mProtectionParameterCaptor;
93 @Captor private ArgumentCaptor<KeyStore.Entry> mEntryArgumentCaptor;
259 List<KeyStore.Entry> entries = mEntryArgumentCaptor.getAllValues(); in init_createsBothKeysWithSameMaterial()
261 ((KeyStore.SecretKeyEntry) entries.get(0)).getSecretKey().getEncoded(), in init_createsBothKeysWithSameMaterial()
262 ((KeyStore.SecretKeyEntry) entries.get(1)).getSecretKey().getEncoded()); in init_createsBothKeysWithSameMaterial()
DWrappedKeyTest.java36 import java.security.KeyStore;
61 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in tearDown()

123