Home
last modified time | relevance | path

Searched refs:InvalidKeySpecException (Results 1 – 25 of 28) sorted by relevance

12

/libcore/luni/src/test/java/tests/security/spec/
DInvalidKeySpecExceptionTest.java27 import java.security.spec.InvalidKeySpecException;
48 InvalidKeySpecException tE = new InvalidKeySpecException(); in testInvalidKeySpecException01()
59 InvalidKeySpecException tE; in testInvalidKeySpecException02()
61 tE = new InvalidKeySpecException(msgs[i]); in testInvalidKeySpecException02()
75 InvalidKeySpecException tE = new InvalidKeySpecException(msg); in testInvalidKeySpecException03()
87 InvalidKeySpecException tE = new InvalidKeySpecException(cause); in testInvalidKeySpecException04()
98 InvalidKeySpecException tE = new InvalidKeySpecException(tCause); in testInvalidKeySpecException05()
116 InvalidKeySpecException tE = new InvalidKeySpecException(null, null); in testInvalidKeySpecException06()
127 InvalidKeySpecException tE; in testInvalidKeySpecException07()
129 tE = new InvalidKeySpecException(msgs[i], null); in testInvalidKeySpecException07()
[all …]
/libcore/ojluni/src/main/java/java/security/spec/
DInvalidKeySpecException.java41 public class InvalidKeySpecException extends GeneralSecurityException { class
50 public InvalidKeySpecException() { in InvalidKeySpecException() method in InvalidKeySpecException
61 public InvalidKeySpecException(String msg) { in InvalidKeySpecException() method in InvalidKeySpecException
76 public InvalidKeySpecException(String message, Throwable cause) { in InvalidKeySpecException() method in InvalidKeySpecException
91 public InvalidKeySpecException(Throwable cause) { in InvalidKeySpecException() method in InvalidKeySpecException
/libcore/ojluni/src/main/java/sun/security/ec/
DECKeyFactory.java160 throws InvalidKeySpecException { in engineGeneratePublic()
163 } catch (InvalidKeySpecException e) { in engineGeneratePublic()
166 throw new InvalidKeySpecException(e); in engineGeneratePublic()
172 throws InvalidKeySpecException { in engineGeneratePrivate()
175 } catch (InvalidKeySpecException e) { in engineGeneratePrivate()
178 throw new InvalidKeySpecException(e); in engineGeneratePrivate()
236 throw new InvalidKeySpecException("Only ECPublicKeySpec " in implGeneratePublic()
251 throw new InvalidKeySpecException("Only ECPrivateKeySpec " in implGeneratePrivate()
257 throws InvalidKeySpecException { in engineGetKeySpec()
264 throw new InvalidKeySpecException(e); in engineGetKeySpec()
[all …]
/libcore/ojluni/src/main/java/java/security/
DKeyFactory.java31 import java.security.spec.InvalidKeySpecException;
349 throws InvalidKeySpecException { in generatePublic()
368 if (failure instanceof InvalidKeySpecException) { in generatePublic()
369 throw (InvalidKeySpecException)failure; in generatePublic()
371 throw new InvalidKeySpecException in generatePublic()
387 throws InvalidKeySpecException { in generatePrivate()
406 if (failure instanceof InvalidKeySpecException) { in generatePrivate()
407 throw (InvalidKeySpecException)failure; in generatePrivate()
409 throw new InvalidKeySpecException in generatePrivate()
434 throws InvalidKeySpecException { in getKeySpec()
[all …]
DKeyFactorySpi.java29 import java.security.spec.InvalidKeySpecException;
84 throws InvalidKeySpecException; in engineGeneratePublic()
98 throws InvalidKeySpecException; in engineGeneratePrivate()
123 throws InvalidKeySpecException; in engineGetKeySpec()
DKeyRep.java32 import java.security.spec.InvalidKeySpecException;
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactoryTest.java18 import java.security.spec.InvalidKeySpecException;
194 } catch (InvalidKeySpecException e) { in testGeneratePublic()
205 InvalidKeySpecException.class, in testGeneratePublic()
207 InvalidKeySpecException.class in testGeneratePublic()
243 } catch (InvalidKeySpecException e) { in testGeneratePrivate()
254 InvalidKeySpecException.class, in testGeneratePrivate()
256 InvalidKeySpecException.class in testGeneratePrivate()
308 } catch (InvalidKeySpecException e) { in testGetKeySpec()
330 InvalidKeySpecException.class, in testGetKeySpec()
332 InvalidKeySpecException.class, in testGetKeySpec()
[all …]
DKeyPairTest.java28 import java.security.spec.InvalidKeySpecException;
89 public final void testKeyPair02() throws InvalidKeySpecException {
108 public final void testGetPrivate02() throws InvalidKeySpecException {
128 public final void testGetPublic02() throws InvalidKeySpecException {
DSignedObjectTest.java40 import java.security.spec.InvalidKeySpecException;
DKeyFactory2Test.java33 import java.security.spec.InvalidKeySpecException;
/libcore/ojluni/src/main/java/javax/crypto/
DSecretKeyFactory.java455 throws InvalidKeySpecException { in generateSecret()
471 if (failure instanceof InvalidKeySpecException) { in generateSecret()
472 throw (InvalidKeySpecException)failure; in generateSecret()
474 throw new InvalidKeySpecException in generateSecret()
499 throws InvalidKeySpecException { in getKeySpec()
515 if (failure instanceof InvalidKeySpecException) { in getKeySpec()
516 throw (InvalidKeySpecException)failure; in getKeySpec()
518 throw new InvalidKeySpecException in getKeySpec()
DEncryptedPrivateKeyInfo.java247 throws InvalidKeySpecException { in getKeySpec()
253 InvalidKeySpecException ikse = new in getKeySpec()
254 InvalidKeySpecException( in getKeySpec()
259 InvalidKeySpecException ikse = new in getKeySpec()
260 InvalidKeySpecException( in getKeySpec()
265 InvalidKeySpecException ikse = new in getKeySpec()
266 InvalidKeySpecException( in getKeySpec()
DSecretKeyFactorySpi.java68 throws InvalidKeySpecException; in engineGenerateSecret()
92 throws InvalidKeySpecException; in engineGetKeySpec()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DSecretKeyFactorySpiTest.java26 import java.security.spec.InvalidKeySpecException;
41 protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException { in engineGenerateSecret()
47 throws InvalidKeySpecException { in engineGetKeySpec()
62 public void testSecretKeyFactorySpi01() throws InvalidKeyException, InvalidKeySpecException { in testSecretKeyFactorySpi01()
DSecretKeyFactoryTest.java31 import java.security.spec.InvalidKeySpecException;
121 InvalidKeySpecException, InvalidKeyException { in testSecretKeyFactory01()
351 InvalidKeySpecException { in testSecretKeyFactory10()
368 } catch (InvalidKeySpecException e) { in testSecretKeyFactory10()
375 } catch (InvalidKeySpecException e) { in testSecretKeyFactory10()
380 } catch (InvalidKeySpecException e) { in testSecretKeyFactory10()
385 } catch (InvalidKeySpecException e) { in testSecretKeyFactory10()
400 } catch (InvalidKeySpecException e) { in testSecretKeyFactory10()
DEncryptedPrivateKeyInfoTest.java37 import java.security.spec.InvalidKeySpecException;
1099 } catch (InvalidKeySpecException e) { in testGetKeySpecCipher01()
1138 } catch (InvalidKeySpecException e) { in test_ROUNDTRIP_GetKeySpecCipher01()
1176 } catch (InvalidKeySpecException ok) { in test_ROUNDTRIP_GetKeySpecCipher02()
1645 } catch (InvalidKeySpecException e) { in TestDataGenerator()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DMySecretKeyFactorySpi.java26 import java.security.spec.InvalidKeySpecException;
41 throws InvalidKeySpecException { in engineGenerateSecret()
48 throws InvalidKeySpecException { in engineGetKeySpec()
/libcore/luni/src/test/java/libcore/javax/crypto/
DSecretKeyFactoryTest.java19 import java.security.spec.InvalidKeySpecException;
56 } catch (InvalidKeySpecException expected) { in test_PBKDF2_required_parameters()
62 } catch (InvalidKeySpecException expected) { in test_PBKDF2_required_parameters()
68 } catch (InvalidKeySpecException expected) { in test_PBKDF2_required_parameters()
77 } catch (InvalidKeySpecException expected) { in test_PBKDF2_required_parameters()
83 } catch (InvalidKeySpecException expected) { in test_PBKDF2_required_parameters()
89 } catch (InvalidKeySpecException expected) { in test_PBKDF2_required_parameters()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestKeyPair.java29 import java.security.spec.InvalidKeySpecException;
589 InvalidKeySpecException { in getPublic()
596 InvalidKeySpecException { in getPrivate()
/libcore/support/src/test/java/tests/security/
DDefaultKeys.java22 import java.security.spec.InvalidKeySpecException;
195 …ateKey getPrivateKey(String algorithmName) throws NoSuchAlgorithmException, InvalidKeySpecException in getPrivateKey()
201 …blicKey getPublicKey(String algorithmName) throws NoSuchAlgorithmException, InvalidKeySpecException in getPublicKey()
DKeyFactoryTest.java24 import java.security.spec.InvalidKeySpecException;
/libcore/luni/src/test/java/tests/security/cert/
DPKIXCertPathBuilderResultTest.java36 import java.security.spec.InvalidKeySpecException;
80 throws InvalidKeySpecException, in testPKIXCertPathBuilderResult01()
103 throws InvalidKeySpecException, in testPKIXCertPathBuilderResult02()
236 throws InvalidKeySpecException, in testToString()
DPKIXCertPathValidatorResultTest.java32 import java.security.spec.InvalidKeySpecException;
71 throws InvalidKeySpecException, in testPKIXCertPathValidatorResult01()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS8Key.java39 import java.security.spec.InvalidKeySpecException;
189 } catch (InvalidKeySpecException e) { in buildPKCS8Key()
/libcore/ojluni/src/main/java/sun/security/x509/
DX509Key.java39 import java.security.spec.InvalidKeySpecException;
226 } catch (InvalidKeySpecException e) { in buildX509Key()

12