/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | InvalidKeyExceptionTest.java | 25 import java.security.InvalidKeyException; 47 InvalidKeyException tE = new InvalidKeyException(); in testInvalidKeyException01() 58 InvalidKeyException tE; in testInvalidKeyException02() 60 tE = new InvalidKeyException(msgs[i]); in testInvalidKeyException02() 73 InvalidKeyException tE = new InvalidKeyException(msg); in testInvalidKeyException03() 85 InvalidKeyException tE = new InvalidKeyException(cause); in testInvalidKeyException04() 96 InvalidKeyException tE = new InvalidKeyException(tCause); in testInvalidKeyException05() 114 InvalidKeyException tE = new InvalidKeyException(null, null); in testInvalidKeyException06() 125 InvalidKeyException tE; in testInvalidKeyException07() 127 tE = new InvalidKeyException(msgs[i], null); in testInvalidKeyException07() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | DESKeySpecTest.java | 25 import java.security.InvalidKeyException; 112 } catch (InvalidKeyException e) { in testDESKeySpec() 121 } catch (InvalidKeyException e) { in testDESKeySpec() 127 } catch (InvalidKeyException e) { in testDESKeySpec() 135 } catch (InvalidKeyException e) { in testDESKeySpec() 144 } catch (InvalidKeyException e) { in testDESKeySpec() 150 } catch (InvalidKeyException e) { in testDESKeySpec() 166 } catch (InvalidKeyException e) { in testGetKey() 180 } catch (InvalidKeyException e) { in testGetKey() 206 } catch (InvalidKeyException e) { in testIsParityAdjusted() [all …]
|
D | DESedeKeySpecTest.java | 26 import java.security.InvalidKeyException; 49 } catch (InvalidKeyException e) { in testDESedeKeySpec() 58 } catch (InvalidKeyException e) { in testDESedeKeySpec() 66 } catch (InvalidKeyException e) { in testDESedeKeySpec() 74 } catch (InvalidKeyException e) { in testDESedeKeySpec() 85 } catch (InvalidKeyException e) { in testDESedeKeySpec() 93 } catch (InvalidKeyException e) { in testDESedeKeySpec() 110 } catch (InvalidKeyException e) { in testGetKey() 125 } catch (InvalidKeyException e) { in testGetKey() 150 } catch (InvalidKeyException e) { in testIsParityAdjusted() [all …]
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | MockCipherSpi.java | 21 import java.security.InvalidKeyException; 40 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 42 throw new InvalidKeyException("Must be MockKey!"); in checkKeyType() 49 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 52 throw new InvalidKeyException("Must be MockKey2!"); in checkKeyType() 105 throws InvalidKeyException { in engineInit() 111 … SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit() 117 … SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit() 125 throws InvalidKeyException { in engineInit() 131 … SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit() [all …]
|
D | MockKeyAgreementSpi.java | 20 import java.security.InvalidKeyException; 35 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 37 throw new InvalidKeyException("Must be MockKey!"); in checkKeyType() 44 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 47 throw new InvalidKeyException("Must be MockKey2!"); in checkKeyType() 55 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 59 protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, in engineDoPhase() 77 NoSuchAlgorithmException, InvalidKeyException { in engineGenerateSecret() 82 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { in engineInit() 88 throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit()
|
D | MockMacSpi.java | 21 import java.security.InvalidKeyException; 38 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 40 throw new InvalidKeyException("Must be MockKey!"); in checkKeyType() 47 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 50 throw new InvalidKeyException("Must be MockKey2!"); in checkKeyType() 58 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 68 throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit()
|
/libcore/ojluni/src/main/java/javax/crypto/spec/ |
D | DESKeySpec.java | 28 import java.security.InvalidKeyException; 130 public DESKeySpec(byte[] key) throws InvalidKeyException { in DESKeySpec() 153 public DESKeySpec(byte[] key, int offset) throws InvalidKeyException { in DESKeySpec() 155 throw new InvalidKeyException("Wrong key size"); in DESKeySpec() 187 throws InvalidKeyException { in isParityAdjusted() 189 throw new InvalidKeyException("null key"); in isParityAdjusted() 192 throw new InvalidKeyException("Wrong key size"); in isParityAdjusted() 220 throws InvalidKeyException { in isWeak() 222 throw new InvalidKeyException("null key"); in isWeak() 225 throw new InvalidKeyException("Wrong key size"); in isWeak()
|
D | DESedeKeySpec.java | 28 import java.security.InvalidKeyException; 61 public DESedeKeySpec(byte[] key) throws InvalidKeyException { in DESedeKeySpec() 83 public DESedeKeySpec(byte[] key, int offset) throws InvalidKeyException { in DESedeKeySpec() 85 throw new InvalidKeyException("Wrong key size"); in DESedeKeySpec() 115 throws InvalidKeyException { in isParityAdjusted() 117 throw new InvalidKeyException("Wrong key size"); in isParityAdjusted()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | MockKeyAgreementSpi.java | 20 import java.security.InvalidKeyException; 34 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 36 throw new InvalidKeyException("Must be MockKey!"); in checkKeyType() 43 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 45 throw new InvalidKeyException("Must be MockKey2!"); in checkKeyType() 53 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 57 protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, in engineDoPhase() 75 NoSuchAlgorithmException, InvalidKeyException { in engineGenerateSecret() 80 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { in engineInit() 86 throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit()
|
D | MockMacSpi.java | 19 import java.security.InvalidKeyException; 30 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 32 throw new InvalidKeyException("Must be MockKey!"); in checkKeyType() 39 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 41 throw new InvalidKeyException("Must be MockKey2!"); in checkKeyType() 49 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 58 protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, in engineInit()
|
D | ExemptionMechanismSpiTest.java | 28 import java.security.InvalidKeyException; 66 protected void engineInit(Key key) throws InvalidKeyException, ExemptionMechanismException { in engineInit() 72 …protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, Inva… in engineInit() 78 …protected void engineInit(Key key, AlgorithmParameters params) throws InvalidKeyException, Invalid… in engineInit() 104 } catch (InvalidKeyException e) { in testExemptionMechanismSpi01() 109 } catch (InvalidKeyException e) { in testExemptionMechanismSpi01() 114 } catch (InvalidKeyException e) { in testExemptionMechanismSpi01()
|
D | KeyAgreementSpiTest.java | 26 import java.security.InvalidKeyException; 48 protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, in engineDoPhase() 60 NoSuchAlgorithmException, InvalidKeyException { in engineGenerateSecret() 71 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { in engineInit() 77 throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit() 87 public void testKeyAgreementSpi01() throws InvalidKeyException, in testKeyAgreementSpi01()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | MockSignatureSpi.java | 19 import java.security.InvalidKeyException; 33 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 35 throw new InvalidKeyException("Must be MockPrivateKey!"); in checkKeyType() 42 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 44 throw new InvalidKeyException("Must be MockPrivateKey2!"); in checkKeyType() 52 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType() 59 protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { in engineInitVerify() 67 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | X509Key.java | 36 import java.security.InvalidKeyException; 104 throws InvalidKeyException { in X509Key() 173 } catch (InvalidKeyException e) { in parse() 196 protected void parseKeyBits() throws IOException, InvalidKeyException { in parseKeyBits() 206 throws IOException, InvalidKeyException in buildX509Key() 227 throw new InvalidKeyException(e.getMessage(), e); in buildX509Key() 309 } catch (InvalidKeyException e) { in getEncoded() 315 public byte[] getEncodedInternal() throws InvalidKeyException { in getEncodedInternal() 323 throw new InvalidKeyException("IOException : " + in getEncodedInternal() 343 public byte[] encode() throws InvalidKeyException { in encode() [all …]
|
/libcore/ojluni/src/main/java/java/security/ |
D | InvalidKeyException.java | 37 public class InvalidKeyException extends KeyException { class 46 public InvalidKeyException() { in InvalidKeyException() method in InvalidKeyException 57 public InvalidKeyException(String msg) { in InvalidKeyException() method in InvalidKeyException 72 public InvalidKeyException(String message, Throwable cause) { in InvalidKeyException() method in InvalidKeyException 87 public InvalidKeyException(Throwable cause) { in InvalidKeyException() method in InvalidKeyException
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/ |
D | MyExemptionMechanismSpi.java | 27 import java.security.InvalidKeyException; 66 protected void engineInit(Key key) throws InvalidKeyException, in engineInit() 69 throw new InvalidKeyException("key is null"); in engineInit() 78 throws InvalidKeyException, InvalidAlgorithmParameterException, in engineInit() 81 throw new InvalidKeyException("key is null"); in engineInit() 93 throws InvalidKeyException, InvalidAlgorithmParameterException, in engineInit() 96 throw new InvalidKeyException("key is null"); in engineInit()
|
D | MyKeyAgreementSpi.java | 26 import java.security.InvalidKeyException; 46 throws InvalidKeyException, IllegalStateException { in engineDoPhase() 67 InvalidKeyException { in engineGenerateSecret() 76 throws InvalidKeyException { in engineInit() 82 SecureRandom random) throws InvalidKeyException, in engineInit()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | KeyAgreement.java | 378 throws InvalidKeyException, InvalidAlgorithmParameterException { in implInit() 388 throws InvalidKeyException, InvalidAlgorithmParameterException { in chooseProvider() 427 if (lastException instanceof InvalidKeyException) { in chooseProvider() 428 throw (InvalidKeyException)lastException; in chooseProvider() 437 throw new InvalidKeyException in chooseProvider() 473 public final void init(Key key) throws InvalidKeyException { in init() 498 throws InvalidKeyException { in init() 508 throw new InvalidKeyException(e); in init() 545 throws InvalidKeyException, InvalidAlgorithmParameterException in init() 572 throws InvalidKeyException, InvalidAlgorithmParameterException in init() [all …]
|
D | KeyAgreementSpi.java | 86 throws InvalidKeyException; in engineInit() 106 throws InvalidKeyException, InvalidAlgorithmParameterException; in engineInit() 128 throws InvalidKeyException, IllegalStateException; in engineDoPhase() 203 InvalidKeyException; in engineGenerateSecret()
|
D | ExemptionMechanismSpi.java | 30 import java.security.InvalidKeyException; 82 throws InvalidKeyException, ExemptionMechanismException; in engineInit() 106 throws InvalidKeyException, InvalidAlgorithmParameterException, in engineInit() 131 throws InvalidKeyException, InvalidAlgorithmParameterException, in engineInit()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | PKCS8Key.java | 37 import java.security.InvalidKeyException; 82 throws InvalidKeyException { in PKCS8Key() 136 } catch (InvalidKeyException e) { in parseKey() 159 protected void parseKeyBits () throws IOException, InvalidKeyException { in parseKeyBits() 169 throws IOException, InvalidKeyException in buildPKCS8Key() 273 } catch (InvalidKeyException e) { in getEncoded() 290 public byte[] encode() throws InvalidKeyException { in encode() 300 throw new InvalidKeyException ("IOException : " + in encode() 323 public void decode(InputStream in) throws InvalidKeyException in decode() 330 throw new InvalidKeyException ("invalid key format"); in decode() [all …]
|
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/ |
D | X509Key.java | 37 throws java.security.InvalidKeyException { in X509Key() 55 protected void parseKeyBits() throws java.io.IOException, java.security.InvalidKeyException { in parseKeyBits() 61 throws java.io.IOException, java.security.InvalidKeyException { in buildX509Key() 81 public byte[] getEncodedInternal() throws java.security.InvalidKeyException { in getEncodedInternal() 89 public byte[] encode() throws java.security.InvalidKeyException { in encode() 97 public void decode(java.io.InputStream in) throws java.security.InvalidKeyException { in decode() 101 public void decode(byte[] encodedKey) throws java.security.InvalidKeyException { in decode()
|
/libcore/ojluni/annotations/flagged_api/javax/crypto/ |
D | KeyAgreement.annotated.java | 45 public final void init(java.security.Key key) throws java.security.InvalidKeyException { throw new … in init() 47 …y.Key key, java.security.SecureRandom random) throws java.security.InvalidKeyException { throw new… in init() 49 …ws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException { throw new… in init() 51 …ws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException { throw new… in init() 53 …n lastPhase) throws java.lang.IllegalStateException, java.security.InvalidKeyException { throw new… in doPhase() 59 …g algorithm) throws java.lang.IllegalStateException, java.security.InvalidKeyException, java.secur… in generateSecret()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/pkcs/ |
D | PKCS8Key.java | 41 throws java.security.InvalidKeyException { in PKCS8Key() 55 protected void parseKeyBits() throws java.io.IOException, java.security.InvalidKeyException { in parseKeyBits() 60 throws java.io.IOException, java.security.InvalidKeyException { in buildPKCS8Key() 84 public byte[] encode() throws java.security.InvalidKeyException { in encode() 88 public void decode(java.io.InputStream in) throws java.security.InvalidKeyException { in decode() 92 public void decode(byte[] encodedKey) throws java.security.InvalidKeyException { in decode()
|
/libcore/ojluni/annotations/mmodule/javax/crypto/ |
D | KeyAgreement.annotated.java | 53 public final void init(java.security.Key key) throws java.security.InvalidKeyException { throw new … in init() 55 …y.Key key, java.security.SecureRandom random) throws java.security.InvalidKeyException { throw new… in init() 57 …ws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException { throw new… in init() 59 …ws java.security.InvalidAlgorithmParameterException, java.security.InvalidKeyException { throw new… in init() 61 …n lastPhase) throws java.lang.IllegalStateException, java.security.InvalidKeyException { throw new… in doPhase() 67 …g algorithm) throws java.lang.IllegalStateException, java.security.InvalidKeyException, java.secur… in generateSecret()
|