Home
last modified time | relevance | path

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

123

/aosp14/frameworks/base/keystore/java/android/security/
H A DKeyStore2.java105 throws KeyStoreException { in handleRemoteExceptionWithRetry()
150 void delete(KeyDescriptor descriptor) throws KeyStoreException { in delete()
168 throws KeyStoreException { in listBatch()
230 throws KeyStoreException { in grant()
245 throws KeyStoreException { in ungrant()
261 throws KeyStoreException { in getKeyEntry()
274 throws KeyStoreException { in getSecurityLevel()
292 byte[] publicCertChain) throws KeyStoreException { in updateSubcomponents()
307 throws KeyStoreException { in deleteKey()
381 return new KeyStoreException(errorCode, in getKeyStoreException()
[all …]
H A DKeyStoreOperation.java67 throws KeyStoreException { in handleExceptions()
88 throw new KeyStoreException(KeymasterDefs.KM_ERROR_INVALID_OPERATION_HANDLE, "", in handleExceptions()
99 public void updateAad(@NonNull byte[] input) throws KeyStoreException { in updateAad()
114 public byte[] update(@NonNull byte[] input) throws KeyStoreException { in update()
127 public byte[] finish(byte[] input, byte[] signature) throws KeyStoreException { in finish()
137 public void abort() throws KeyStoreException { in abort()
H A DKeyStoreSecurityLevel.java53 private <R> R handleExceptions(CheckedRemoteRequest<R> request) throws KeyStoreException { in handleExceptions()
62 throw new KeyStoreException(ResponseCode.SYSTEM_ERROR, "", e.getMessage()); in handleExceptions()
77 Collection<KeyParameter> args) throws KeyStoreException { in createOperation()
144 throws KeyStoreException { in generateKey()
165 throws KeyStoreException { in importKey()
188 throws KeyStoreException { in importWrappedKey()
H A DKeyStore.java144 public static KeyStoreException getKeyStoreException(int errorCode) { in getKeyStoreException()
145 return new KeyStoreException(-10000, "Should not be called."); in getKeyStoreException()
/aosp14/frameworks/base/keystore/java/android/security/keystore2/
H A DAndroidKeyStoreSpi.java59 import java.security.KeyStoreException;
272 throws KeyStoreException { in engineSetKeyEntry()
287 throws KeyStoreException { in getLegacyKeyProtectionParameter()
365 throw new KeyStoreException( in setPrivateKeyEntry()
461 throw new KeyStoreException( in setPrivateKeyEntry()
637 throws KeyStoreException { in assertCanReplace()
661 throws KeyStoreException { in setSecretKeyEntry()
663 throw new KeyStoreException( in setSecretKeyEntry()
689 throw new KeyStoreException( in setSecretKeyEntry()
990 throws KeyStoreException { in engineSetKeyEntry()
[all …]
H A 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()
H A DKeyStoreCryptoOperationStreamer.java20 import android.security.KeyStoreException;
37 byte[] update(byte[] input, int inputOffset, int inputLength) throws KeyStoreException; in update()
39 throws KeyStoreException; in doFinal()
H A DKeyStoreCryptoOperationUtils.java24 import android.security.KeyStoreException;
112 AndroidKeyStoreKey key, KeyStoreException e) { in getInvalidKeyException()
138 AndroidKeyStoreKey key, KeyStoreException e) { in getExceptionForCipherInit()
186 } catch (KeyStoreException e) { in abortOperation()
H A DAndroidKeyStoreHmacSpi.java20 import android.security.KeyStoreException;
183 } catch (KeyStoreException keyStoreException) { in ensureKeystoreOperationInitialized()
219 } catch (KeyStoreException e) { in engineUpdate()
240 } catch (KeyStoreException e) { in engineDoFinal()
H A 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()
H A DAndroidKeyStoreECDSASignatureSpi.java21 import android.security.KeyStoreException;
87 throws KeyStoreException { in update()
97 throws KeyStoreException { in doFinal()
H A DAndroidKeyStoreKeyAgreementSpi.java23 import android.security.KeyStoreException;
179 } catch (KeyStoreException e) { in engineGenerateSecret()
251 } catch (KeyStoreException keyStoreException) { in ensureKeystoreOperationInitialized()
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
H A 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()
H A 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()
H A DPlatformKeyManager.java37 import java.security.KeyStoreException;
99 throws KeyStoreException, NoSuchAlgorithmException { in getInstance()
155 } catch (KeyStoreException e) { in invalidatePlatformKey()
176 throws NoSuchAlgorithmException, KeyStoreException, IOException, in regenerate()
203 throws KeyStoreException, UnrecoverableKeyException, NoSuchAlgorithmException, in getEncryptKey()
230 private PlatformEncryptionKey getEncryptKeyInternal(int userId) throws KeyStoreException, in getEncryptKeyInternal()
256 throws KeyStoreException, UnrecoverableKeyException, NoSuchAlgorithmException, in getDecryptKey()
330 throws KeyStoreException, NoSuchAlgorithmException, IOException, in init()
396 private boolean isKeyLoaded(int userId, int generationId) throws KeyStoreException { in isKeyLoaded()
469 private static KeyStore getAndLoadAndroidKeyStore() throws KeyStoreException { in getAndLoadAndroidKeyStore()
[all …]
H A 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()
H A DRecoverableKeyGenerator.java26 import java.security.KeyStoreException;
100 throws RecoverableKeyStorageException, KeyStoreException, InvalidKeyException { in generateAndStoreKey()
145 throws RecoverableKeyStorageException, KeyStoreException, InvalidKeyException { in importKey()
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
H A 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()
/aosp14/frameworks/base/keystore/tests/src/android/security/keystore/
H A DKeyStoreExceptionTest.java21 import android.security.KeyStoreException;
34 KeyStoreException exception = new KeyStoreException(-1, primaryMessage, keystoreMessage); in testKeystoreMessageIsIncluded()
/aosp14/frameworks/base/core/java/org/apache/http/conn/ssl/
H A 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()
/aosp14/frameworks/base/keystore/java/android/security/keystore/
H A DAndroidKeyStoreProvider.java25 import java.security.KeyStoreException;
88 throws KeyStoreException, NoSuchProviderException { in getKeyStoreForUid()
96 throw new KeyStoreException( in getKeyStoreForUid()
H A DSecureKeyImportUnavailableException.java19 import android.security.KeyStoreException;
34 super(message, new KeyStoreException(KeymasterDefs.KM_ERROR_HARDWARE_TYPE_UNAVAILABLE, in SecureKeyImportUnavailableException()
H A DStrongBoxUnavailableException.java19 import android.security.KeyStoreException;
36 new KeyStoreException(KeymasterDefs.KM_ERROR_HARDWARE_TYPE_UNAVAILABLE, in StrongBoxUnavailableException()
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/
H A 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()
/aosp14/frameworks/base/core/java/android/security/net/config/
H A DRootTrustManagerFactorySpi.java23 import java.security.KeyStoreException;
52 public void engineInit(KeyStore ks) throws KeyStoreException { in engineInit()

123