Home
last modified time | relevance | path

Searched refs:KeyStoreException (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreSpi.java43 import java.security.KeyStoreException;
272 throws KeyStoreException { in engineSetKeyEntry()
274 throw new KeyStoreException("entries cannot be protected with passwords"); in engineSetKeyEntry()
282 throw new KeyStoreException("Only PrivateKey and SecretKey are supported"); in engineSetKeyEntry()
287 throws KeyStoreException { in getLegacyKeyProtectionParameter()
332 throw new KeyStoreException("Unsupported key algorithm: " + keyAlgorithm); in getLegacyKeyProtectionParameter()
340 java.security.KeyStore.ProtectionParameter param) throws KeyStoreException { in setPrivateKeyEntry()
361 throw new KeyStoreException( in setPrivateKeyEntry()
369 throw new KeyStoreException("Must supply at least one Certificate with PrivateKey"); in setPrivateKeyEntry()
376 throw new KeyStoreException("Certificates must be in X.509 format: invalid cert #" in setPrivateKeyEntry()
[all …]
DKeyStoreCryptoOperationStreamer.java20 import android.security.KeyStoreException;
37 byte[] update(byte[] input, int inputOffset, int inputLength) throws KeyStoreException; in update()
39 byte[] additionalEntropy) throws KeyStoreException; in doFinal()
DKeyStoreCryptoOperationChunkedStreamer.java21 import android.security.KeyStoreException;
91 public byte[] update(byte[] input, int inputOffset, int inputLength) throws KeyStoreException { in update()
146 throw new KeyStoreException(KeymasterDefs.KM_ERROR_UNKNOWN_ERROR, in update()
159 throw new KeyStoreException(KeymasterDefs.KM_ERROR_UNKNOWN_ERROR, in update()
209 byte[] signature, byte[] additionalEntropy) throws KeyStoreException { in doFinal()
231 public byte[] flush() throws KeyStoreException { in flush()
266 throw new KeyStoreException(KeymasterDefs.KM_ERROR_UNKNOWN_ERROR, in flush()
294 throw new KeyStoreException(KeymasterDefs.KM_ERROR_INVALID_INPUT_LENGTH, in flush()
DStrongBoxUnavailableException.java20 import android.security.KeyStoreException;
36 new KeyStoreException(KeyStore.HARDWARE_TYPE_UNAVAILABLE, "No StrongBox available") in StrongBoxUnavailableException()
DSecureKeyImportUnavailableException.java20 import android.security.KeyStoreException;
34 super(message, new KeyStoreException(KeyStore.HARDWARE_TYPE_UNAVAILABLE, in SecureKeyImportUnavailableException()
DAndroidKeyStoreECDSASignatureSpi.java22 import android.security.KeyStoreException;
74 throws KeyStoreException { in update()
84 byte[] additionalEntropy) throws KeyStoreException { in doFinal()
DAndroidKeyStoreHmacSpi.java21 import android.security.KeyStoreException;
218 } catch (KeyStoreException e) { in engineUpdate()
241 } catch (KeyStoreException e) { in engineDoFinal()
DAndroidKeyStoreSignatureSpiBase.java23 import android.security.KeyStoreException;
272 } catch (KeyStoreException e) { in engineUpdate()
332 } catch (InvalidKeyException | KeyStoreException e) { in engineSign()
365 } catch (KeyStoreException e) { in engineVerify()
DAndroidKeyStoreAuthenticatedAESCipherSpi.java23 import android.security.KeyStoreException;
358 throws KeyStoreException { in update()
372 byte[] signature, byte[] additionalEntropy) throws KeyStoreException { in doFinal()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeyStoreProxyImpl.java23 import java.security.KeyStoreException;
44 public boolean containsAlias(String alias) throws KeyStoreException { in containsAlias()
50 throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException { in getKey()
56 throws KeyStoreException { in setEntry()
61 public void deleteEntry(String alias) throws KeyStoreException { in deleteEntry()
71 public static KeyStore getAndLoadAndroidKeyStore() throws KeyStoreException { in getAndLoadAndroidKeyStore()
77 throw new KeyStoreException("Unable to load keystore.", e); in getAndLoadAndroidKeyStore()
DKeyStoreProxy.java21 import java.security.KeyStoreException;
34 boolean containsAlias(String alias) throws KeyStoreException; in containsAlias()
38 throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException; in getKey()
42 throws KeyStoreException; in setEntry()
45 void deleteEntry(String alias) throws KeyStoreException; in deleteEntry()
DPlatformKeyManager.java31 import java.security.KeyStoreException;
89 throws KeyStoreException, NoSuchAlgorithmException { in getInstance()
145 } catch (KeyStoreException e) { in invalidatePlatformKey()
166 throws NoSuchAlgorithmException, KeyStoreException, InsecureUserException, IOException { in regenerate()
196 public PlatformEncryptionKey getEncryptKey(int userId) throws KeyStoreException, in getEncryptKey()
224 private PlatformEncryptionKey getEncryptKeyInternal(int userId) throws KeyStoreException, in getEncryptKeyInternal()
249 public PlatformDecryptionKey getDecryptKey(int userId) throws KeyStoreException, in getDecryptKey()
274 private PlatformDecryptionKey getDecryptKeyInternal(int userId) throws KeyStoreException, in getDecryptKeyInternal()
298 throws KeyStoreException, NoSuchAlgorithmException, InsecureUserException, IOException { in init()
370 private boolean isKeyLoaded(int userId, int generationId) throws KeyStoreException { in isKeyLoaded()
[all …]
DWrappedKey.java24 import java.security.KeyStoreException;
62 throws InvalidKeyException, KeyStoreException { in fromSecretKey()
82 if (cause instanceof KeyStoreException) { in fromSecretKey()
88 throw (KeyStoreException) cause; in fromSecretKey()
DRecoverableKeyGenerator.java24 import java.security.KeyStoreException;
96 throws RecoverableKeyStorageException, KeyStoreException, InvalidKeyException { in generateAndStoreKey()
139 throws RecoverableKeyStorageException, KeyStoreException, InvalidKeyException { in importKey()
DRecoverableKeyStoreManager.java63 import java.security.KeyStoreException;
123 } catch (KeyStoreException e) { in getInstance()
611 } catch (KeyStoreException e) { in recoverKeyChainSnapshot()
628 int userId, int uid, Map<String, byte[]> keysByAlias) throws KeyStoreException { in importKeyMaterials()
691 } catch (KeyStoreException | UnrecoverableKeyException | IOException e) { in generateKey()
702 } catch (KeyStoreException | InvalidKeyException | RecoverableKeyStorageException e) { in generateKey()
740 } catch (KeyStoreException | UnrecoverableKeyException | IOException e) { in importKey()
753 } catch (KeyStoreException | InvalidKeyException | RecoverableKeyStorageException e) { in importKey()
874 } catch (KeyStoreException e) { in lockScreenSecretAvailable()
906 } catch (KeyStoreException e) { in lockScreenSecretChanged()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DApplicationKeyStorage.java34 import java.security.KeyStoreException;
55 throws KeyStoreException { in getInstance()
79 throws KeyStoreException { in setSymmetricKeyEntry()
92 } catch (KeyStoreException e) { in setSymmetricKeyEntry()
101 } catch (KeyStoreException e) { in deleteEntry()
/frameworks/base/core/java/org/apache/http/conn/ssl/
DSSLSocketFactory.java53 import java.security.KeyStoreException;
189 …throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyExcept… in SSLSocketFactory()
213 …throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyExcept… in SSLSocketFactory()
219 …throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyExcept… in SSLSocketFactory()
225 …throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyExcept… in SSLSocketFactory()
256 throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException { in createKeyManagers()
267 throws KeyStoreException, NoSuchAlgorithmException { in createTrustManagers()
/frameworks/base/keystore/java/android/security/
DKeyStoreException.java28 public class KeyStoreException extends Exception { class
32 public KeyStoreException(int errorCode, String message) { in KeyStoreException() method in KeyStoreException
DKeyStore.java806 public static KeyStoreException getKeyStoreException(int errorCode) { in getKeyStoreException()
811 return new KeyStoreException(errorCode, "OK"); in getKeyStoreException()
813 return new KeyStoreException(errorCode, "User authentication required"); in getKeyStoreException()
815 return new KeyStoreException(errorCode, "Keystore not initialized"); in getKeyStoreException()
817 return new KeyStoreException(errorCode, "System error"); in getKeyStoreException()
819 return new KeyStoreException(errorCode, "Permission denied"); in getKeyStoreException()
821 return new KeyStoreException(errorCode, "Key not found"); in getKeyStoreException()
823 return new KeyStoreException(errorCode, "Key blob corrupted"); in getKeyStoreException()
825 return new KeyStoreException(errorCode, "Operation requires authorization"); in getKeyStoreException()
827 return new KeyStoreException(errorCode, String.valueOf(errorCode)); in getKeyStoreException()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DWfaKeyStore.java24 import java.security.KeyStoreException;
62 } catch (KeyStoreException | CertificateException | NoSuchAlgorithmException in load()
/frameworks/base/core/java/android/security/net/config/
DRootTrustManagerFactorySpi.java23 import java.security.KeyStoreException;
52 public void engineInit(KeyStore ks) throws KeyStoreException { in engineInit()
DKeyStoreCertificateSource.java21 import java.security.KeyStoreException;
69 } catch (KeyStoreException e) { in ensureInitialized()
DKeyStoreConfigSource.java21 import java.security.KeyStoreException;
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordCrypto.java27 import java.security.KeyStoreException;
139 | KeyStoreException | NoSuchPaddingException | NoSuchAlgorithmException in decryptBlob()
171 | KeyStoreException | NoSuchPaddingException | NoSuchAlgorithmException in createBlob()
184 } catch (KeyStoreException | NoSuchAlgorithmException | CertificateException in destroyBlobKey()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProvisioningTestUtil.java29 import java.security.KeyStoreException;
97 } catch (KeyStoreException | CertificateException | NoSuchAlgorithmException in createFakeKeyStore()

12