Home
last modified time | relevance | path

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

123

/frameworks/base/keystore/java/android/security/
DKeyStore2.java104 throws KeyStoreException { in handleRemoteExceptionWithRetry()
123 throw new KeyStoreException(ResponseCode.SYSTEM_ERROR, ""); in handleRemoteExceptionWithRetry()
149 void delete(KeyDescriptor descriptor) throws KeyStoreException { in delete()
159 public KeyDescriptor[] list(int domain, long namespace) throws KeyStoreException { in list()
220 throws KeyStoreException { in grant()
235 throws KeyStoreException { in ungrant()
251 throws KeyStoreException { in getKeyEntry()
264 throws KeyStoreException { in getSecurityLevel()
282 byte[] publicCertChain) throws KeyStoreException { in updateSubcomponents()
297 throws KeyStoreException { in deleteKey()
[all …]
DKeyStoreOperation.java67 throws KeyStoreException { in handleExceptions()
88 throw new KeyStoreException(KeymasterDefs.KM_ERROR_INVALID_OPERATION_HANDLE, ""); in handleExceptions()
98 public void updateAad(@NonNull byte[] input) throws KeyStoreException { in updateAad()
113 public byte[] update(@NonNull byte[] input) throws KeyStoreException { in update()
126 public byte[] finish(byte[] input, byte[] signature) throws KeyStoreException { in finish()
136 public void abort() throws KeyStoreException { in abort()
DKeyStoreSecurityLevel.java53 private <R> R handleExceptions(CheckedRemoteRequest<R> request) throws KeyStoreException { in handleExceptions()
62 throw new KeyStoreException(ResponseCode.SYSTEM_ERROR, ""); 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()
DKeyStoreException.java28 public class KeyStoreException extends Exception { class
32 public KeyStoreException(int errorCode, String message) { in KeyStoreException() method in KeyStoreException
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreSpi.java56 import java.security.KeyStoreException;
117 if (cause instanceof android.security.KeyStoreException) { in engineGetKey()
118 if (((android.security.KeyStoreException) cause).getErrorCode() in engineGetKey()
157 } catch (android.security.KeyStoreException e) { in getKeyMetadata()
262 throws KeyStoreException { in engineSetKeyEntry()
264 throw new KeyStoreException("entries cannot be protected with passwords"); in engineSetKeyEntry()
272 throw new KeyStoreException("Only PrivateKey and SecretKey are supported"); in engineSetKeyEntry()
277 throws KeyStoreException { in getLegacyKeyProtectionParameter()
322 throw new KeyStoreException("Unsupported key algorithm: " + keyAlgorithm); in getLegacyKeyProtectionParameter()
330 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.java20 import android.security.KeyStoreException;
37 byte[] update(byte[] input, int inputOffset, int inputLength) throws KeyStoreException; in update()
39 throws KeyStoreException; in doFinal()
DKeyStoreCryptoOperationUtils.java24 import android.security.KeyStoreException;
114 AndroidKeyStoreKey key, KeyStoreException e) { in getInvalidKeyException()
140 AndroidKeyStoreKey key, KeyStoreException e) { in getExceptionForCipherInit()
188 } 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()
DAndroidKeyStoreECDSASignatureSpi.java21 import android.security.KeyStoreException;
80 throws KeyStoreException { in update()
90 throws KeyStoreException { in doFinal()
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()
DAndroidKeyStoreKeyAgreementSpi.java23 import android.security.KeyStoreException;
153 } catch (KeyStoreException e) { in engineGenerateSecret()
225 } catch (KeyStoreException keyStoreException) { in ensureKeystoreOperationInitialized()
/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;
100 throws KeyStoreException, NoSuchAlgorithmException { in getInstance()
156 } 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.java36 import java.security.KeyStoreException;
60 throws KeyStoreException { in getInstance()
80 throws KeyStoreException { in setSymmetricKeyEntry()
93 } catch (KeyStoreException e) { in setSymmetricKeyEntry()
102 } catch (KeyStoreException e) { in deleteEntry()
137 } catch (android.security.KeyStoreException e) { in makeKeystoreEngineGrantString()
/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/keystore/java/android/security/keystore/
DAndroidKeyStoreProvider.java25 import java.security.KeyStoreException;
88 throws KeyStoreException, NoSuchProviderException { in getKeyStoreForUid()
96 throw new KeyStoreException( in getKeyStoreForUid()
DStrongBoxUnavailableException.java19 import android.security.KeyStoreException;
36 new KeyStoreException(KeymasterDefs.KM_ERROR_HARDWARE_TYPE_UNAVAILABLE, in StrongBoxUnavailableException()
DSecureKeyImportUnavailableException.java19 import android.security.KeyStoreException;
34 super(message, new KeyStoreException(KeymasterDefs.KM_ERROR_HARDWARE_TYPE_UNAVAILABLE, in SecureKeyImportUnavailableException()
/frameworks/base/keystore/tests/src/android/security/keystore2/
DAndroidKeyStoreSpiTest.java26 import android.security.KeyStoreException;
46 .thenThrow(new KeyStoreException(6, "Some Error")); in testEngineAliasesReturnsEmptySetOnKeyStoreError()
/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/core/java/com/android/server/locksettings/
DSyntheticPasswordCrypto.java32 import java.security.KeyStoreException;
154 throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException { in getKeyStore()
172 | KeyStoreException | NoSuchPaddingException | NoSuchAlgorithmException in decryptBlob()
203 | KeyStoreException | NoSuchPaddingException | NoSuchAlgorithmException in createBlob()
217 } catch (KeyStoreException | NoSuchAlgorithmException | CertificateException in destroyBlobKey()

123