Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStoreExceptionTest.java25 import java.security.KeyStoreException;
47 KeyStoreException tE = new KeyStoreException(); in testKeyStoreException01()
58 KeyStoreException tE; in testKeyStoreException02()
60 tE = new KeyStoreException(msgs[i]); in testKeyStoreException02()
73 KeyStoreException tE = new KeyStoreException(msg); in testKeyStoreException03()
84 KeyStoreException tE = new KeyStoreException(cause); in testKeyStoreException04()
95 KeyStoreException tE = new KeyStoreException(tCause); in testKeyStoreException05()
113 KeyStoreException tE = new KeyStoreException(null, null); in testKeyStoreException06()
124 KeyStoreException tE; in testKeyStoreException07()
126 tE = new KeyStoreException(msgs[i], null); in testKeyStoreException07()
[all …]
DKeyStore4Test.java16 import java.security.KeyStoreException;
45 } catch (KeyStoreException e) { in setUp()
51 } catch (KeyStoreException e) { in setUp()
69 } catch (KeyStoreException e) { in testGetInstanceString()
76 } catch (KeyStoreException e) { in testGetInstanceString()
85 } catch (KeyStoreException e) { in testGetInstanceString()
95 } catch (KeyStoreException e) { in testGetInstanceStringString()
104 } catch (KeyStoreException e) { in testGetInstanceStringString()
113 } catch (KeyStoreException e) { in testGetInstanceStringString()
124 } catch (KeyStoreException e) { in testGetInstanceStringString()
[all …]
DKeyStoreBuilderTest.java28 import java.security.KeyStoreException;
90 throws KeyStoreException, NoSuchAlgorithmException, IOException, in testNewInstanceKeyStoreProtectionParameter()
149 } catch (KeyStoreException e) { in testNewInstanceKeyStoreProtectionParameter()
155 } catch (KeyStoreException e) { in testNewInstanceKeyStoreProtectionParameter()
162 } catch (KeyStoreException e) { in testNewInstanceKeyStoreProtectionParameter()
260 } catch (KeyStoreException e) { in testNewInstanceStringProviderFileProtectionParameter()
288 } catch (KeyStoreException e) { in testNewInstanceStringProviderFileProtectionParameter()
293 } catch (KeyStoreException e) { in testNewInstanceStringProviderFileProtectionParameter()
314 } catch (KeyStoreException e) { in testNewInstanceStringProviderFileProtectionParameter()
328 } catch (KeyStoreException e) { in testNewInstanceStringProviderFileProtectionParameter()
[all …]
DKeyStoreSpiTest.java28 import java.security.KeyStoreException;
90 UnrecoverableEntryException, KeyStoreException { in testKeyStoreSpi01()
94 Certificate[] chain) throws KeyStoreException { keyEntryWasSet[0] = true; } in testKeyStoreSpi01()
118 } catch (KeyStoreException expected) { in testKeyStoreSpi01()
126 } catch (KeyStoreException expected) { in testKeyStoreSpi01()
132 } catch (KeyStoreException expected) { in testKeyStoreSpi01()
157 } catch (KeyStoreException expected) { in testKeyStoreSpi02()
162 } catch (KeyStoreException expected) { in testKeyStoreSpi02()
168 } catch (KeyStoreException expected) { in testKeyStoreSpi02()
173 } catch (KeyStoreException expected) { in testKeyStoreSpi02()
DKeyStore3Test.java32 import java.security.KeyStoreException;
60 } catch (KeyStoreException e) { in test_store()
190 public void engineDeleteEntry(String arg0) throws KeyStoreException { in engineDeleteEntry()
229 throws KeyStoreException { in engineSetCertificateEntry()
234 Certificate[] arg2) throws KeyStoreException { in engineSetKeyEntry()
239 Certificate[] arg3) throws KeyStoreException { in engineSetKeyEntry()
DKeyStore2Test.java30 import java.security.KeyStoreException;
177 } catch (KeyStoreException expected) { in test_aliases()
222 } catch (KeyStoreException expected) { in test_containsAliasLjava_lang_String()
259 } catch (KeyStoreException expected) { in test_getCertificateLjava_lang_String()
332 } catch (KeyStoreException expected) { in test_getCertificateChainLjava_lang_String()
423 } catch (KeyStoreException expected) { in test_isCertificateEntryLjava_lang_String()
454 } catch (KeyStoreException expected) { in test_isKeyEntryLjava_lang_String()
519 } catch (KeyStoreException expected) { in test_setCertificateEntryLjava_lang_StringLjava_security_cert_Certificate()
556 } catch (KeyStoreException expected) { in test_setKeyEntryLjava_lang_StringLjava_security_Key$C$Ljava_security_cert_Certificate()
588 } catch (KeyStoreException expected) { in test_size()
[all …]
DKeyStoreTest.java27 import java.security.KeyStoreException;
163 } catch (KeyStoreException e) { in testSetKeyEntry()
214 public void testKeyStore02() throws KeyStoreException { in testKeyStore02()
226 } catch (KeyStoreException e) { in testKeyStore02()
/libcore/ojluni/src/main/java/java/security/
DKeyStore.java898 throws KeyStoreException in getInstance()
904 throw new KeyStoreException(type + " not found", nsae); in getInstance()
906 throw new KeyStoreException(type + " not found", nspe); in getInstance()
944 throws KeyStoreException, NoSuchProviderException in getInstance()
952 throw new KeyStoreException(type + " not found", nsae); in getInstance()
988 throws KeyStoreException in getInstance()
1000 throw new KeyStoreException(type + " not found", nsae); in getInstance()
1077 throws KeyStoreException, NoSuchAlgorithmException, in getKey()
1081 throw new KeyStoreException("Uninitialized keystore"); in getKey()
1103 throws KeyStoreException in getCertificateChain()
[all …]
DKeyStoreException.java37 public class KeyStoreException extends GeneralSecurityException { class
46 public KeyStoreException() { in KeyStoreException() method in KeyStoreException
57 public KeyStoreException(String msg) { in KeyStoreException() method in KeyStoreException
72 public KeyStoreException(String message, Throwable cause) { in KeyStoreException() method in KeyStoreException
87 public KeyStoreException(Throwable cause) { in KeyStoreException() method in KeyStoreException
DKeyStoreSpi.java151 throws KeyStoreException; in engineSetKeyEntry()
176 throws KeyStoreException; in engineSetKeyEntry()
197 throws KeyStoreException; in engineSetCertificateEntry()
207 throws KeyStoreException; in engineDeleteEntry()
454 throws KeyStoreException, NoSuchAlgorithmException, in engineGetEntry()
544 throws KeyStoreException { in engineSetEntry()
549 throw new KeyStoreException("unsupported protection parameter"); in engineSetEntry()
581 throw new KeyStoreException in engineSetEntry()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMyKeyStoreSpi.java30 import java.security.KeyStoreException;
69 Certificate[] chain) throws KeyStoreException { in engineSetKeyEntry()
70 throw new KeyStoreException( in engineSetKeyEntry()
75 throws KeyStoreException { in engineSetKeyEntry()
76 throw new KeyStoreException( in engineSetKeyEntry()
81 throws KeyStoreException { in engineSetCertificateEntry()
82 throw new KeyStoreException( in engineSetCertificateEntry()
86 public void engineDeleteEntry(String alias) throws KeyStoreException { in engineDeleteEntry()
87 throw new KeyStoreException( in engineDeleteEntry()
DTestKeyStoreSpi.java26 import java.security.KeyStoreException;
90 public void engineDeleteEntry(String alias) throws KeyStoreException { in engineDeleteEntry()
91 throw new KeyStoreException("entry " + alias + " cannot be deleted"); in engineDeleteEntry()
204 throws KeyStoreException { in engineSetCertificateEntry()
207 throw new KeyStoreException("alias is not a cert entry"); in engineSetCertificateEntry()
215 Certificate[] chain) throws KeyStoreException { in engineSetKeyEntry()
218 throw new KeyStoreException("alias is not a key enrty"); in engineSetKeyEntry()
234 throws KeyStoreException { in engineSetKeyEntry()
235 throw new KeyStoreException("set entry failed"); in engineSetKeyEntry()
DMyKeyStore.java31 import java.security.KeyStoreException;
93 Certificate[] chain) throws KeyStoreException { in engineSetKeyEntry()
105 throws KeyStoreException { in engineSetKeyEntry()
107 throw new KeyStoreException("Not Supported for null key"); in engineSetKeyEntry()
126 throws KeyStoreException { in engineSetCertificateEntry()
131 public void engineDeleteEntry(String alias) throws KeyStoreException { in engineDeleteEntry()
/libcore/ojluni/annotations/hiddenapi/java/security/
DKeyStore.java41 throws java.security.KeyStoreException { in getInstance()
47 throws java.security.KeyStoreException, java.security.NoSuchProviderException { in getInstance()
53 throws java.security.KeyStoreException { in getInstance()
70 throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException, in getKey()
76 throws java.security.KeyStoreException { in getCertificateChain()
81 throws java.security.KeyStoreException { in getCertificate()
86 throws java.security.KeyStoreException { in getCreationDate()
95 throws java.security.KeyStoreException { in setKeyEntry()
101 throws java.security.KeyStoreException { in setKeyEntry()
107 throws java.security.KeyStoreException { in setCertificateEntry()
[all …]
/libcore/luni/src/test/java/tests/targets/security/
DKeyStoreTest.java29 import java.security.KeyStoreException;
55 } catch (KeyStoreException e) { in testKeyStoreLoad()
73 } catch (KeyStoreException e) { in testKeyStoreLoad()
90 } catch (KeyStoreException e) { in createAndTest()
138 } catch (KeyStoreException e) { in createAndTest()
144 } catch (KeyStoreException e) { in createAndTest()
157 } catch (KeyStoreException e) { in createAndTest()
165 } catch (KeyStoreException e) { in createAndTest()
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
DMyTrustManagerFactorySpi.java22 import java.security.KeyStoreException;
35 protected void engineInit(KeyStore ks) throws KeyStoreException { in engineInit()
37 throw new KeyStoreException("Not supported operation for null KeyStore"); in engineInit()
49 } catch (KeyStoreException e) { in engineInit()
DKeyManagerFactorySpiImpl.java22 import java.security.KeyStoreException;
34 throws KeyStoreException, NoSuchAlgorithmException, in engineInit()
42 throw new KeyStoreException(); in engineInit()
DMyKeyManagerFactorySpi.java22 import java.security.KeyStoreException;
39 throws KeyStoreException, NoSuchAlgorithmException, in engineInit()
42 throw new KeyStoreException("Incorrect password"); in engineInit()
DTrustManagerFactorySpiImpl.java22 import java.security.KeyStoreException;
34 public void engineInit(KeyStore ks) throws KeyStoreException { in engineInit()
/libcore/ojluni/src/test/java/security/KeyStore/
DTestKeystoreBasic.java32 import java.security.KeyStoreException;
135 } catch (java.security.KeyStoreException e) { in run()
251 } catch (KeyStoreException e) { in checkSetEntry()
262 } catch (KeyStoreException e) { in checkGetEntry()
275 private void checkAlias(KeyStore obj, int range) throws KeyStoreException { in checkAlias()
285 throws KeyStoreException { in compareCreationDate()
/libcore/ojluni/src/main/java/java/security/cert/
DPKIXBuilderParameters.java29 import java.security.KeyStoreException;
128 throws KeyStoreException, InvalidAlgorithmParameterException in PKIXBuilderParameters()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DTrustManagerFactory2Test.java22 import java.security.KeyStoreException;
81 } catch (KeyStoreException e) { in checkResult()
94 } catch (KeyStoreException e) { in checkResult()
104 assertTrue("Incorrect exception", e.getCause() instanceof KeyStoreException); in checkResult()
DKeyManagerFactorySpiTest.java20 import java.security.KeyStoreException;
65 } catch (KeyStoreException uke) { in test_engineInit_01()
DKeyManagerFactory2Test.java22 import java.security.KeyStoreException;
87 } catch (KeyStoreException e) { in checkResult()
105 } catch (KeyStoreException e) { in checkResult()
/libcore/ojluni/src/main/java/javax/net/ssl/
DTrustManagerFactorySpi.java51 protected abstract void engineInit(KeyStore ks) throws KeyStoreException; in engineInit()

12