Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/security/
DConfirmationPrompt.java94 private final KeyStore mKeyStore = KeyStore.getInstance();
99 case KeyStore.CONFIRMATIONUI_OK: in doCallback()
103 case KeyStore.CONFIRMATIONUI_CANCELED: in doCallback()
107 case KeyStore.CONFIRMATIONUI_ABORTED: in doCallback()
111 case KeyStore.CONFIRMATIONUI_SYSTEM_ERROR: in doCallback()
282 case KeyStore.CONFIRMATIONUI_OK: in presentPrompt()
285 case KeyStore.CONFIRMATIONUI_OPERATION_PENDING: in presentPrompt()
288 case KeyStore.CONFIRMATIONUI_UNIMPLEMENTED: in presentPrompt()
291 case KeyStore.CONFIRMATIONUI_UIERROR: in presentPrompt()
314 if (responseCode == KeyStore.CONFIRMATIONUI_OK) { in cancelPrompt()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeyStoreProxyImpl.java22 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.java30 import java.security.KeyStore;
395 new KeyStore.SecretKeyEntry(secretKey), in generateAndLoadKey()
406 new KeyStore.SecretKeyEntry(secretKey), in generateAndLoadKey()
434 private static KeyStore getAndLoadAndroidKeyStore() throws KeyStoreException { in getAndLoadAndroidKeyStore()
435 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in getAndLoadAndroidKeyStore()
/frameworks/base/keystore/java/android/security/keystore/
DKeyStoreCryptoOperationUtils.java19 import android.security.KeyStore;
46 KeyStore keyStore, AndroidKeyStoreKey key, int beginOpResultCode) { in getInvalidKeyExceptionForInit()
47 if (beginOpResultCode == KeyStore.NO_ERROR) { in getInvalidKeyExceptionForInit()
56 case KeyStore.OP_AUTH_NEEDED: in getInvalidKeyExceptionForInit()
75 KeyStore keyStore, AndroidKeyStoreKey key, int beginOpResultCode) { in getExceptionForCipherInit()
76 if (beginOpResultCode == KeyStore.NO_ERROR) { in getExceptionForCipherInit()
DAndroidKeyStoreProvider.java20 import android.security.KeyStore;
227 private static KeyCharacteristics getKeyCharacteristics(@NonNull KeyStore keyStore, in getKeyCharacteristics()
233 if (errorCode != KeyStore.NO_ERROR) { in getKeyCharacteristics()
236 .initCause(KeyStore.getKeyStoreException(errorCode)); in getKeyCharacteristics()
243 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid, in loadAndroidKeyStorePublicKeyFromKeystore()
248 if (exportResult.resultCode != KeyStore.NO_ERROR) { in loadAndroidKeyStorePublicKeyFromKeystore()
251 .initCause(KeyStore.getKeyStoreException(exportResult.resultCode)); in loadAndroidKeyStorePublicKeyFromKeystore()
276 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid) in loadAndroidKeyStorePublicKeyFromKeystore()
284 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid, in loadAndroidKeyStoreKeyPairFromKeystore()
297 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid) in loadAndroidKeyStoreKeyPairFromKeystore()
[all …]
DAndroidKeyStoreSpi.java22 import android.security.KeyStore;
38 import java.security.KeyStore.Entry;
39 import java.security.KeyStore.LoadStoreParameter;
40 import java.security.KeyStore.PrivateKeyEntry;
41 import java.security.KeyStore.ProtectionParameter;
42 import java.security.KeyStore.SecretKeyEntry;
89 private KeyStore mKeyStore;
90 private int mUid = KeyStore.UID_SELF;
340 java.security.KeyStore.ProtectionParameter param) throws KeyStoreException { in setPrivateKeyEntry()
349 flags = KeyStore.FLAG_ENCRYPTED; in setPrivateKeyEntry()
[all …]
DKeyStoreCryptoOperationChunkedStreamer.java20 import android.security.KeyStore;
131 } else if (opResult.resultCode != KeyStore.NO_ERROR) { in update()
132 throw KeyStore.getKeyStoreException(opResult.resultCode); in update()
223 } else if (opResult.resultCode != KeyStore.NO_ERROR) { in doFinal()
224 throw KeyStore.getKeyStoreException(opResult.resultCode); in doFinal()
244 } else if (opResult.resultCode != KeyStore.NO_ERROR) { in flush()
245 throw KeyStore.getKeyStoreException(opResult.resultCode); in flush()
323 private final KeyStore mKeyStore;
326 public MainDataStream(KeyStore keyStore, IBinder operationToken) { in MainDataStream()
DAndroidKeyStoreLoadStoreParameter.java19 import java.security.KeyStore;
20 import java.security.KeyStore.ProtectionParameter;
22 class AndroidKeyStoreLoadStoreParameter implements KeyStore.LoadStoreParameter {
DAndroidKeyStoreAuthenticatedAESCipherSpi.java22 import android.security.KeyStore;
176 KeyStore keyStore, IBinder operationToken) { in createMainDataStreamer()
192 KeyStore keyStore, IBinder operationToken) { in createAdditionalAuthenticationDataStreamer()
405 private final KeyStore mKeyStore;
408 private AdditionalAuthenticationDataStream(KeyStore keyStore, IBinder operationToken) { in AdditionalAuthenticationDataStream()
422 if (result.resultCode == KeyStore.NO_ERROR) { in update()
440 KeyStore.NO_ERROR, in finish()
DAndroidKeyStoreKeyPairGeneratorSpi.java23 import android.security.KeyStore;
153 private KeyStore mKeyStore;
354 mKeyStore = KeyStore.getInstance(); in initialize()
365 mEntryUid = KeyStore.UID_SELF; in resetAll()
450 int flags = (mEncryptionAtRestRequired) ? KeyStore.FLAG_ENCRYPTED : 0; in generateKeyPair()
451 if (((flags & KeyStore.FLAG_ENCRYPTED) != 0) in generateKeyPair()
452 && (mKeyStore.state() != KeyStore.State.UNLOCKED)) { in generateKeyPair()
459 flags |= KeyStore.FLAG_STRONGBOX; in generateKeyPair()
509 if (errorCode != KeyStore.NO_ERROR) { in generateKeystoreKeyPair()
510 if (errorCode == KeyStore.HARDWARE_TYPE_UNAVAILABLE) { in generateKeystoreKeyPair()
[all …]
DStrongBoxUnavailableException.java19 import android.security.KeyStore;
36 new KeyStoreException(KeyStore.HARDWARE_TYPE_UNAVAILABLE, "No StrongBox available") in StrongBoxUnavailableException()
DSecureKeyImportUnavailableException.java19 import android.security.KeyStore;
34 super(message, new KeyStoreException(KeyStore.HARDWARE_TYPE_UNAVAILABLE, in SecureKeyImportUnavailableException()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DWfaKeyStore.java23 import java.security.KeyStore;
41 private KeyStore mKeyStore = null;
52 mKeyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in load()
72 public KeyStore get() { in get()
DCertificateVerifier.java21 import java.security.KeyStore;
51 KeyStore ks = KeyStore.getInstance("AndroidCAStore"); in verifyCaCert()
/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/keystore/java/android/security/
DCredentials.java226 public static boolean deleteAllTypesForAlias(KeyStore keystore, String alias) { in deleteAllTypesForAlias()
227 return deleteAllTypesForAlias(keystore, alias, KeyStore.UID_SELF); in deleteAllTypesForAlias()
235 public static boolean deleteAllTypesForAlias(KeyStore keystore, String alias, int uid) { in deleteAllTypesForAlias()
249 public static boolean deleteCertificateTypesForAlias(KeyStore keystore, String alias) { in deleteCertificateTypesForAlias()
250 return deleteCertificateTypesForAlias(keystore, alias, KeyStore.UID_SELF); in deleteCertificateTypesForAlias()
258 public static boolean deleteCertificateTypesForAlias(KeyStore keystore, String alias, int uid) { in deleteCertificateTypesForAlias()
271 public static boolean deleteUserKeyTypeForAlias(KeyStore keystore, String alias) { in deleteUserKeyTypeForAlias()
272 return deleteUserKeyTypeForAlias(keystore, alias, KeyStore.UID_SELF); in deleteUserKeyTypeForAlias()
279 public static boolean deleteUserKeyTypeForAlias(KeyStore keystore, String alias, int uid) { in deleteUserKeyTypeForAlias()
288 public static boolean deleteLegacyKeyForAlias(KeyStore keystore, String alias, int uid) { in deleteLegacyKeyForAlias()
DKeyStoreParameter.java25 import java.security.KeyStore.ProtectionParameter;
79 return (mFlags & KeyStore.FLAG_ENCRYPTED) != 0; in isEncryptionRequired()
133 mFlags |= KeyStore.FLAG_ENCRYPTED; in setEncryptionRequired()
135 mFlags &= ~KeyStore.FLAG_ENCRYPTED; in setEncryptionRequired()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordCrypto.java26 import java.security.KeyStore;
117 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in decryptBlobV1()
131 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in decryptBlob()
152 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createBlob()
165 new KeyStore.SecretKeyEntry(secretKey), in createBlob()
179 KeyStore keyStore; in destroyBlobKey()
181 keyStore = KeyStore.getInstance("AndroidKeyStore"); in destroyBlobKey()
/frameworks/base/core/java/org/apache/http/conn/ssl/
DSSLSocketFactory.java52 import java.security.KeyStore;
184 final KeyStore keystore, in SSLSocketFactory()
186 final KeyStore truststore, in SSLSocketFactory()
210 final KeyStore keystore, in SSLSocketFactory()
212 final KeyStore truststore) in SSLSocketFactory()
218 public SSLSocketFactory(final KeyStore keystore, final String keystorePassword) in SSLSocketFactory()
224 public SSLSocketFactory(final KeyStore truststore) in SSLSocketFactory()
255 private static KeyManager[] createKeyManagers(final KeyStore keystore, final String password) in createKeyManagers()
266 private static TrustManager[] createTrustManagers(final KeyStore keystore) in createTrustManagers()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProvisioningTestUtil.java28 import java.security.KeyStore;
86 public static KeyStore createFakeKeyStore() { in createFakeKeyStore()
87 KeyStore keyStore = null; in createFakeKeyStore()
90 keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in createFakeKeyStore()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DApplicationKeyStorage.java26 import android.security.KeyStore;
33 import java.security.KeyStore.SecretKeyEntry;
52 private final KeyStore mKeystoreService;
54 public static ApplicationKeyStorage getInstance(KeyStore keystoreService) in getInstance()
62 ApplicationKeyStorage(KeyStoreProxy keyStore, KeyStore keystoreService) { in ApplicationKeyStorage()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsServiceTestable.java29 import android.security.KeyStore;
41 private KeyStore mKeyStore;
48 public MockInjector(Context context, LockSettingsStorage storage, KeyStore keyStore, in MockInjector()
92 public KeyStore getKeyStore() { in getKeyStore()
113 LockSettingsStorage storage, FakeGateKeeperService gatekeeper, KeyStore keystore, in LockSettingsServiceTestable()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DMockKeyStore.java8 import android.security.KeyStore;
35 public KeyStore createMock() { in createMock()
36 KeyStore mock = mock(KeyStore.class); in createMock()
37 when(mock.state()).thenReturn(KeyStore.State.UNLOCKED); in createMock()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiKeyStore.java24 import android.security.KeyStore;
49 private final KeyStore mKeyStore;
51 WifiKeyStore(KeyStore keyStore) { in WifiKeyStore()
99 KeyStore.FLAG_NONE); in installKeys()
187 return mKeyStore.put(name, certData, Process.WIFI_UID, KeyStore.FLAG_NONE); in putCertsInKeyStore()
204 return mKeyStore.importKey(name, privKeyData, Process.WIFI_UID, KeyStore.FLAG_NONE); in putKeyInKeyStore()

1234