Home
last modified time | relevance | path

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

123

/frameworks/base/keystore/java/android/security/
DKeyStore2.java105 throws KeyStoreException { in handleRemoteExceptionWithRetry()
124 throw new KeyStoreException(ResponseCode.SYSTEM_ERROR, "", e.getMessage()); in handleRemoteExceptionWithRetry()
162 void delete(KeyDescriptor descriptor) throws KeyStoreException { in delete()
174 public KeyDescriptor[] list(int domain, long namespace) throws KeyStoreException { in list()
184 throws KeyStoreException { in listBatch()
248 throws KeyStoreException { in grant()
265 throws KeyStoreException { in ungrant()
283 throws KeyStoreException { in getKeyEntry()
298 throws KeyStoreException { in getSecurityLevel()
316 byte[] publicCertChain) throws KeyStoreException { in updateSubcomponents()
[all …]
DKeyStoreOperation.java68 throws KeyStoreException { in handleExceptions()
89 throw new KeyStoreException(KeymasterDefs.KM_ERROR_INVALID_OPERATION_HANDLE, "", in handleExceptions()
100 public void updateAad(@NonNull byte[] input) throws KeyStoreException { in updateAad()
116 public byte[] update(@NonNull byte[] input) throws KeyStoreException { in update()
130 public byte[] finish(byte[] input, byte[] signature) throws KeyStoreException { in finish()
141 public void abort() throws KeyStoreException { in abort()
DAndroidKeyStoreMaintenance.java220 throws KeyStoreException { in getAllAppUidsAffectedBySid()
225 throw new KeyStoreException(SYSTEM_ERROR, in getAllAppUidsAffectedBySid()
228 throw new KeyStoreException(e.errorCode, in getAllAppUidsAffectedBySid()
240 public static void deleteAllKeys() throws KeyStoreException { in deleteAllKeys()
245 throw new KeyStoreException(SYSTEM_ERROR, in deleteAllKeys()
248 throw new KeyStoreException(e.errorCode, in deleteAllKeys()
DKeyStoreSecurityLevel.java54 private <R> R handleExceptions(CheckedRemoteRequest<R> request) throws KeyStoreException { in handleExceptions()
63 throw new KeyStoreException(ResponseCode.SYSTEM_ERROR, "", e.getMessage()); in handleExceptions()
78 Collection<KeyParameter> args) throws KeyStoreException { in createOperation()
146 throws KeyStoreException { in generateKey()
169 throws KeyStoreException { in importKey()
194 throws KeyStoreException { in importWrappedKey()
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreSpi.java62 import java.security.KeyStoreException;
130 if (cause instanceof android.security.KeyStoreException) { in engineGetKey()
131 if (((android.security.KeyStoreException) cause).getErrorCode() in engineGetKey()
171 } catch (android.security.KeyStoreException e) { in getKeyMetadata()
285 throws KeyStoreException { in engineSetKeyEntry()
287 throw new KeyStoreException("entries cannot be protected with passwords"); in engineSetKeyEntry()
295 throw new KeyStoreException("Only PrivateKey and SecretKey are supported"); in engineSetKeyEntry()
300 throws KeyStoreException { in getLegacyKeyProtectionParameter()
345 throw new KeyStoreException("Unsupported key algorithm: " + keyAlgorithm); in getLegacyKeyProtectionParameter()
353 java.security.KeyStore.ProtectionParameter param) throws KeyStoreException { in setPrivateKeyEntry()
[all …]
DKeyStoreCryptoOperationChunkedStreamer.java20 import android.security.KeyStoreException;
64 byte[] update(@NonNull byte[] input) throws KeyStoreException; in update()
79 byte[] finish(byte[] input, byte[] signature) throws KeyStoreException; in finish()
123 public byte[] update(byte[] input, int inputOffset, int inputLength) throws KeyStoreException { in update()
129 throw new KeyStoreException(KeymasterDefs.KM_ERROR_UNKNOWN_ERROR, in update()
178 byte[] signature) throws KeyStoreException { in doFinal()
221 public byte[] update(byte[] input) throws KeyStoreException { in update()
227 throws KeyStoreException { in finish()
DKeyStoreCryptoOperationStreamer.java19 import android.security.KeyStoreException;
36 byte[] update(byte[] input, int inputOffset, int inputLength) throws KeyStoreException; in update()
38 throws KeyStoreException; in doFinal()
DKeyStoreCryptoOperationUtils.java23 import android.security.KeyStoreException;
111 AndroidKeyStoreKey key, KeyStoreException e) { in getInvalidKeyException()
136 AndroidKeyStoreKey key, KeyStoreException e) { in getExceptionForCipherInit()
180 } catch (KeyStoreException e) { in abortOperation()
DAndroidKeyStoreHmacSpi.java20 import android.security.KeyStoreException;
183 } catch (KeyStoreException keyStoreException) { in ensureKeystoreOperationInitialized()
219 } catch (KeyStoreException e) { in engineUpdate()
240 } catch (KeyStoreException e) { in engineDoFinal()
DAndroidKeyStoreSignatureSpiBase.java22 import android.security.KeyStoreException;
216 } catch (KeyStoreException keyStoreException) { in ensureKeystoreOperationInitialized()
272 } catch (KeyStoreException e) { in engineUpdate()
331 } catch (InvalidKeyException | KeyStoreException e) { in engineSign()
DAndroidKeyStoreECDSASignatureSpi.java21 import android.security.KeyStoreException;
87 throws KeyStoreException { in update()
97 throws KeyStoreException { in doFinal()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeyStoreProxyImpl.java22 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.java37 import java.security.KeyStoreException;
99 throws KeyStoreException, NoSuchAlgorithmException { in getInstance()
155 } catch (KeyStoreException e) { in invalidatePlatformKey()
177 throws NoSuchAlgorithmException, KeyStoreException, IOException, in regenerate()
205 throws KeyStoreException, UnrecoverableKeyException, NoSuchAlgorithmException, in getEncryptKey()
232 private PlatformEncryptionKey getEncryptKeyInternal(int userId) throws KeyStoreException, in getEncryptKeyInternal()
258 throws KeyStoreException, UnrecoverableKeyException, NoSuchAlgorithmException, in getDecryptKey()
284 private PlatformDecryptionKey getDecryptKeyInternal(int userId) throws KeyStoreException, in getDecryptKeyInternal()
332 throws KeyStoreException, NoSuchAlgorithmException, IOException, in init()
398 private boolean isKeyLoaded(int userId, int generationId) throws KeyStoreException { in isKeyLoaded()
[all …]
DWrappedKey.java26 import java.security.KeyStoreException;
66 throws InvalidKeyException, KeyStoreException { in fromSecretKey()
86 if (cause instanceof KeyStoreException) { in fromSecretKey()
92 throw (KeyStoreException) cause; in fromSecretKey()
DRecoverableKeyGenerator.java26 import java.security.KeyStoreException;
100 throws RecoverableKeyStorageException, KeyStoreException, InvalidKeyException { in generateAndStoreKey()
145 throws RecoverableKeyStorageException, KeyStoreException, InvalidKeyException { in importKey()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DApplicationKeyStorage.java37 import java.security.KeyStoreException;
61 throws KeyStoreException { in getInstance()
81 throws KeyStoreException { in setSymmetricKeyEntry()
94 } catch (KeyStoreException e) { in setSymmetricKeyEntry()
103 } catch (KeyStoreException e) { in deleteEntry()
138 } catch (android.security.KeyStoreException e) { in makeKeystoreEngineGrantString()
140 == android.security.KeyStoreException.ERROR_KEY_DOES_NOT_EXIST) { in makeKeystoreEngineGrantString()
/frameworks/base/keystore/tests/src/android/security/keystore/
DKeyStoreExceptionTest.java21 import android.security.KeyStoreException;
34 KeyStoreException exception = new KeyStoreException(-1, primaryMessage, keystoreMessage); in testKeystoreMessageIsIncluded()
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreProvider.java25 import java.security.KeyStoreException;
88 throws KeyStoreException, NoSuchProviderException { in getKeyStoreForUid()
96 throw new KeyStoreException( in getKeyStoreForUid()
DSecureKeyImportUnavailableException.java19 import android.security.KeyStoreException;
34 super(message, new KeyStoreException(KeymasterDefs.KM_ERROR_HARDWARE_TYPE_UNAVAILABLE, in SecureKeyImportUnavailableException()
DStrongBoxUnavailableException.java19 import android.security.KeyStoreException;
36 new KeyStoreException(KeymasterDefs.KM_ERROR_HARDWARE_TYPE_UNAVAILABLE, in StrongBoxUnavailableException()
/frameworks/base/core/java/org/apache/http/conn/ssl/
DSSLSocketFactory.java49 import java.security.KeyStoreException;
197 …throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyExcept… in SSLSocketFactory()
221 …throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyExcept… in SSLSocketFactory()
227 …throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyExcept… in SSLSocketFactory()
233 …throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyExcept… in SSLSocketFactory()
267 throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException { in createKeyManagers()
279 throws KeyStoreException, NoSuchAlgorithmException { in createTrustManagers()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordCrypto.java34 import java.security.KeyStoreException;
159 throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException { in getKeyStore()
182 | KeyStoreException | NoSuchPaddingException | NoSuchAlgorithmException in decryptBlob()
224 } catch (KeyStoreException e) { in createBlob()
234 | KeyStoreException | NoSuchPaddingException | NoSuchAlgorithmException in createBlob()
248 } catch (KeyStoreException | NoSuchAlgorithmException | CertificateException in destroyProtectorKey()
/frameworks/base/core/java/android/security/net/config/
DRootTrustManagerFactorySpi.java23 import java.security.KeyStoreException;
52 public void engineInit(KeyStore ks) throws KeyStoreException { in engineInit()
/frameworks/base/services/companion/java/com/android/server/companion/securechannel/
DKeyStoreUtils.java32 import java.security.KeyStoreException;
57 throw new KeyStoreException("Failed to load Android Keystore.", e); in loadKeyStore()

123