Home
last modified time | relevance | path

Searched refs:keyStore (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore/
DKeyStoreCryptoOperationUtils.java46 KeyStore keyStore, AndroidKeyStoreKey key, int beginOpResultCode) { in getInvalidKeyExceptionForInit() argument
54 keyStore.getInvalidKeyException(key.getAlias(), key.getUid(), beginOpResultCode); in getInvalidKeyExceptionForInit()
75 KeyStore keyStore, AndroidKeyStoreKey key, int beginOpResultCode) { in getExceptionForCipherInit() argument
89 return getInvalidKeyExceptionForInit(keyStore, key, beginOpResultCode); in getExceptionForCipherInit()
DAndroidKeyStoreProvider.java216 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid) in loadAndroidKeyStorePublicKeyFromKeystore()
219 int errorCode = keyStore.getKeyCharacteristics( in loadAndroidKeyStorePublicKeyFromKeystore()
226 ExportResult exportResult = keyStore.exportKey( in loadAndroidKeyStorePublicKeyFromKeystore()
256 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid) in loadAndroidKeyStoreKeyPairFromKeystore()
259 loadAndroidKeyStorePublicKeyFromKeystore(keyStore, privateKeyAlias, uid); in loadAndroidKeyStoreKeyPairFromKeystore()
267 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid) in loadAndroidKeyStorePrivateKeyFromKeystore()
269 KeyPair keyPair = loadAndroidKeyStoreKeyPairFromKeystore(keyStore, privateKeyAlias, uid); in loadAndroidKeyStorePrivateKeyFromKeystore()
275 @NonNull KeyStore keyStore, @NonNull String secretKeyAlias, int uid) in loadAndroidKeyStoreSecretKeyFromKeystore()
278 int errorCode = keyStore.getKeyCharacteristics( in loadAndroidKeyStoreSecretKeyFromKeystore()
DAndroidKeyStoreAuthenticatedAESCipherSpi.java176 KeyStore keyStore, IBinder operationToken) { in createMainDataStreamer() argument
179 keyStore, operationToken)); in createMainDataStreamer()
192 KeyStore keyStore, IBinder operationToken) { in createAdditionalAuthenticationDataStreamer() argument
194 new AdditionalAuthenticationDataStream(keyStore, operationToken)); in createAdditionalAuthenticationDataStreamer()
408 private AdditionalAuthenticationDataStream(KeyStore keyStore, IBinder operationToken) { in AdditionalAuthenticationDataStream() argument
409 mKeyStore = keyStore; in AdditionalAuthenticationDataStream()
DAndroidKeyStoreECDSASignatureSpi.java46 protected KeyStoreCryptoOperationStreamer createMainDataStreamer(KeyStore keyStore, in createMainDataStreamer() argument
49 super.createMainDataStreamer(keyStore, operationToken), in createMainDataStreamer()
DKeyStoreCryptoOperationChunkedStreamer.java326 public MainDataStream(KeyStore keyStore, IBinder operationToken) { in MainDataStream() argument
327 mKeyStore = keyStore; in MainDataStream()
DAndroidKeyStoreSecretKeyFactorySpi.java76 static KeyInfo getKeyInfo(KeyStore keyStore, String entryAlias, String keyAliasInKeystore, in getKeyInfo() argument
79 int errorCode = keyStore.getKeyCharacteristics( in getKeyInfo()
DAndroidKeyStoreSignatureSpiBase.java242 KeyStore keyStore, IBinder operationToken) { in createMainDataStreamer() argument
245 keyStore, operationToken)); in createMainDataStreamer()
DAndroidKeyStoreCipherSpiBase.java299 KeyStore keyStore, IBinder operationToken) { in createMainDataStreamer() argument
302 keyStore, operationToken)); in createMainDataStreamer()
314 @SuppressWarnings("unused") KeyStore keyStore, in createAdditionalAuthenticationDataStreamer()
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DOSUManager.java135 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in loadKeyStore() local
138 keyStore.load(in, null); in loadKeyStore()
146 Certificate cert = keyStore.getCertificate(alias); in loadKeyStore()
172 Certificate cert = keyStore.getCertificate(alias); in loadKeyStore()
176 keyStore.deleteEntry(alias); in loadKeyStore()
181 keyStore.setCertificateEntry( in loadKeyStore()
187 keyStore.store(out, null); in loadKeyStore()
191 Enumeration<String> aliases = keyStore.aliases(); in loadKeyStore()
197 keyStore.load(null, null); in loadKeyStore()
200 keyStore.setCertificateEntry( in loadKeyStore()
[all …]
DOSUSocketFactory.java287 private static X509Certificate getCert(KeyStore keyStore, String alias) in getCert() argument
289 Certificate cert = keyStore.getCertificate(alias); in getCert()
296 public static Set<X509Certificate> getRootCerts(KeyStore keyStore) throws KeyStoreException { in getRootCerts() argument
300 Certificate cert = keyStore.getCertificate( in getRootCerts()
DClientKeyManager.java30 public ClientKeyManager(HomeSP homeSP, KeyStore keyStore) throws IOException { in ClientKeyManager() argument
31 mKeyStore = keyStore; in ClientKeyManager()
DWiFiKeyManager.java30 public WiFiKeyManager(KeyStore keyStore) throws IOException { in WiFiKeyManager() argument
31 mKeyStore = keyStore; in WiFiKeyManager()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DFrameworkFacade.java164 KeyStore keyStore) { in makeWifiConfigManager() argument
166 keyStore); in makeWifiConfigManager()
DWifiConfigStore.java102 WifiConfigStore(WifiNative wifiNative, KeyStore keyStore, LocalLog localLog, in WifiConfigStore() argument
105 mKeyStore = keyStore; in WifiConfigStore()
DWifiConfigManager.java336 UserManager userManager, KeyStore keyStore) { in WifiConfigManager() argument
340 mKeyStore = keyStore; in WifiConfigManager()
/frameworks/base/services/core/java/com/android/server/
DLockSettingsService.java744 java.security.KeyStore keyStore = java.security.KeyStore.getInstance("AndroidKeyStore"); in getDecryptedPasswordForTiedProfile() local
745 keyStore.load(null); in getDecryptedPasswordForTiedProfile()
746 SecretKey decryptionKey = (SecretKey) keyStore.getKey( in getDecryptedPasswordForTiedProfile()
1026 java.security.KeyStore keyStore = java.security.KeyStore.getInstance("AndroidKeyStore"); in tieProfileLockToParent() local
1027 keyStore.load(null); in tieProfileLockToParent()
1028 keyStore.setEntry( in tieProfileLockToParent()
1035 keyStore.setEntry( in tieProfileLockToParent()
1046 SecretKey keyStoreEncryptionKey = (SecretKey) keyStore.getKey( in tieProfileLockToParent()
1494 java.security.KeyStore keyStore = java.security.KeyStore.getInstance("AndroidKeyStore");
1495 keyStore.load(null);
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DPasspointManagementObjectManagerTest.java100 KeyStore keyStore = mock(KeyStore.class); in addMoFromWifiConfig() local
101 Credential credential = new Credential(enterpriseConfig, keyStore, false); in addMoFromWifiConfig()
DWifiStateMachineTest.java206 UserManager userManager, KeyStore keyStore){ in getFrameworkFacade()
208 clock, userManager, keyStore); in getFrameworkFacade()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/pps/
DCredential.java132 public Credential(WifiEnterpriseConfig enterpriseConfig, KeyStore keyStore, boolean update) in Credential() argument
155 byte[] octets = keyStore.get(Credentials.USER_CERTIFICATE + alias); in Credential()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java1280 public void startLegacyVpn(VpnProfile profile, KeyStore keyStore, LinkProperties egress) { in startLegacyVpn() argument
1284 startLegacyVpnPrivileged(profile, keyStore, egress); in startLegacyVpn()
1296 public void startLegacyVpnPrivileged(VpnProfile profile, KeyStore keyStore, in startLegacyVpnPrivileged() argument
1316 byte[] value = keyStore.get(Credentials.USER_CERTIFICATE + profile.ipsecUserCert); in startLegacyVpnPrivileged()
1320 byte[] value = keyStore.get(Credentials.CA_CERTIFICATE + profile.ipsecCaCert); in startLegacyVpnPrivileged()
1324 byte[] value = keyStore.get(Credentials.USER_CERTIFICATE + profile.ipsecServerCert); in startLegacyVpnPrivileged()
/frameworks/base/docs/html/training/articles/
Dsecurity-ssl.jd207 KeyStore keyStore = KeyStore.getInstance(keyStoreType);
208 keyStore.load(null, null);
209 keyStore.setCertificateEntry("ca", ca);
214 tmf.init(keyStore);
/frameworks/base/keystore/tests/src/android/security/keystore/
DAndroidKeyStoreTest.java1915 private static X509Certificate generateCertificate(android.security.KeyStore keyStore, in generateCertificate() argument
1921 keyStore, privateKeyAlias, KeyStore.UID_SELF); in generateCertificate()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java16639 final KeyStore keyStore = KeyStore.getInstance();
16640 if (keyStore != null) {
16643 keyStore.clearUid(UserHandle.getUid(individual, appId));
16646 keyStore.clearUid(UserHandle.getUid(userId, appId));