Home
last modified time | relevance | path

Searched refs:SignatureException (Results 1 – 25 of 56) sorted by relevance

123

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSignatureExceptionTest.java25 import java.security.SignatureException;
47 SignatureException tE = new SignatureException(); in testSignatureException01()
58 SignatureException tE; in testSignatureException02()
60 tE = new SignatureException(msgs[i]); in testSignatureException02()
73 SignatureException tE = new SignatureException(msg); in testSignatureException03()
85 SignatureException tE = new SignatureException(cause); in testSignatureException04()
96 SignatureException tE = new SignatureException(tCause); in testSignatureException05()
114 SignatureException tE = new SignatureException(null, null); in testSignatureException06()
125 SignatureException tE; in testSignatureException07()
127 tE = new SignatureException(msgs[i], null); in testSignatureException07()
[all …]
DSignatureTest.java38 import java.security.SignatureException;
216 } catch (SignatureException e) { in testSign()
224 } catch (SignatureException e) { in testSign()
242 } catch (SignatureException e) { in testSignbyteintint()
250 } catch (SignatureException e) { in testSignbyteintint()
262 } catch (SignatureException e) { in testSignbyteintint()
286 } catch (SignatureException e) { in testVerifybyteArray()
293 } catch (SignatureException e) { in testVerifybyteArray()
311 } catch (SignatureException e) { in testVerifybyteArrayintint()
319 } catch (SignatureException e) { in testVerifybyteArrayintint()
[all …]
DSignatureSpiTest.java14 import java.security.SignatureException;
119 protected byte[] engineSign() throws SignatureException { in testEngineGetParameters()
124 protected void engineUpdate(byte b) throws SignatureException { in testEngineGetParameters()
130 throws SignatureException { in testEngineGetParameters()
136 throws SignatureException { in testEngineGetParameters()
249 protected byte[] engineSign() throws SignatureException { in engineSign()
255 protected void engineUpdate(byte b) throws SignatureException { in engineUpdate()
261 throws SignatureException { in engineUpdate()
267 throws SignatureException { in engineVerify()
286 throws SignatureException { in engineSign()
[all …]
DSignature2Test.java35 import java.security.SignatureException;
365 } catch (SignatureException expected) { in test_update$B()
379 } catch (SignatureException expected) { in test_update$BII()
423 } catch (SignatureException expected) { in test_updateLjava_nio_ByteBuffer()
440 } catch (SignatureException expected) { in test_verify$B()
481 } catch (SignatureException expected) { in test_verify$BII()
573 protected byte[] engineSign() throws SignatureException { in engineSign()
578 protected void engineUpdate(byte b) throws SignatureException { in engineUpdate()
584 throws SignatureException { in engineUpdate()
590 throws SignatureException { in engineVerify()
/libcore/ojluni/src/main/java/java/security/
DSignatureException.java35 public class SignatureException extends GeneralSecurityException { class
44 public SignatureException() { in SignatureException() method in SignatureException
55 public SignatureException(String msg) { in SignatureException() method in SignatureException
70 public SignatureException(String message, Throwable cause) { in SignatureException() method in SignatureException
85 public SignatureException(Throwable cause) { in SignatureException() method in SignatureException
DSignatureSpi.java116 protected abstract void engineUpdate(byte b) throws SignatureException; in engineUpdate()
130 throws SignatureException; in engineUpdate()
164 } catch (SignatureException e) { in engineUpdate()
183 protected abstract byte[] engineSign() throws SignatureException; in engineSign()
226 throws SignatureException { in engineSign()
229 throw new SignatureException in engineSign()
233 throw new SignatureException in engineSign()
254 throws SignatureException; in engineVerify()
276 throws SignatureException { in engineVerify()
DSignature.java741 public final byte[] sign() throws SignatureException { in sign()
745 throw new SignatureException("object not initialized for " + in sign()
778 throws SignatureException { in sign()
790 throw new SignatureException("object not initialized for " + in sign()
814 public final boolean verify(byte[] signature) throws SignatureException { in verify()
818 throw new SignatureException("object not initialized for " + in verify()
851 throws SignatureException { in verify()
867 throw new SignatureException("object not initialized for " + in verify()
879 public final void update(byte b) throws SignatureException { in update()
883 throw new SignatureException("object not initialized for " in update()
[all …]
DSignedObject.java148 throws IOException, InvalidKeyException, SignatureException { in SignedObject()
222 throws InvalidKeyException, SignatureException { in verify()
239 throws InvalidKeyException, SignatureException { in sign()
/libcore/ojluni/annotations/hiddenapi/java/security/
DSignature.java99 public final byte[] sign() throws java.security.SignatureException { in sign()
104 throws java.security.SignatureException { in sign()
108 public final boolean verify(byte[] signature) throws java.security.SignatureException { in verify()
113 throws java.security.SignatureException { in verify()
117 public final void update(byte b) throws java.security.SignatureException { in update()
121 public final void update(byte[] data) throws java.security.SignatureException { in update()
126 throws java.security.SignatureException { in update()
130 public final void update(java.nio.ByteBuffer data) throws java.security.SignatureException { in update()
222 protected void engineUpdate(byte b) throws java.security.SignatureException { in engineUpdate()
227 throws java.security.SignatureException { in engineUpdate()
[all …]
/libcore/luni/src/test/java/libcore/java/security/cert/
DFakeOidProvider.java8 import java.security.SignatureException;
46 protected void engineUpdate(byte b) throws SignatureException { in engineUpdate()
50 protected void engineUpdate(byte[] b, int off, int len) throws SignatureException { in engineUpdate()
54 protected byte[] engineSign() throws SignatureException { in engineSign()
59 protected boolean engineVerify(byte[] sigBytes) throws SignatureException { in engineVerify()
/libcore/luni/src/test/java/libcore/java/security/
DMockSignatureSpi.java24 import java.security.SignatureException;
75 protected void engineUpdate(byte b) throws SignatureException { in engineUpdate()
83 protected byte[] engineSign() throws SignatureException { in engineSign()
91 protected boolean engineVerify(byte[] sigBytes) throws SignatureException { in engineVerify()
115 protected void engineUpdate(byte[] b, int off, int len) throws SignatureException { in engineUpdate()
DSignatureTest.java34 import java.security.SignatureException;
240 protected void engineUpdate(byte b) throws SignatureException { in engineUpdate()
244 protected void engineUpdate(byte[] b, int off, int len) throws SignatureException { in engineUpdate()
248 protected byte[] engineSign() throws SignatureException { in engineSign()
253 protected boolean engineVerify(byte[] sigBytes) throws SignatureException { in engineVerify()
412 } catch (SignatureException expected) { in testSignature_updateArray_wrongState_throws()
505 public void engineUpdate(byte b) throws SignatureException { in engineUpdate()
510 public void engineUpdate(byte[] b, int off, int len) throws SignatureException { in engineUpdate()
515 public byte[] engineSign() throws SignatureException { in engineSign()
520 public boolean engineVerify(byte[] sigBytes) throws SignatureException { in engineVerify()
/libcore/ojluni/annotations/mmodule/java/security/
DSignature.annotated.java57 public final byte[] sign() throws java.security.SignatureException { throw new RuntimeException("St… in sign()
59 public final int sign(byte[] outbuf, int offset, int len) throws java.security.SignatureException {… in sign()
61 public final boolean verify(byte[] signature) throws java.security.SignatureException { throw new R… in verify()
63 …ify(byte[] signature, int offset, int length) throws java.security.SignatureException { throw new … in verify()
65 public final void update(byte b) throws java.security.SignatureException { throw new RuntimeExcepti… in update()
67 public final void update(byte[] data) throws java.security.SignatureException { throw new RuntimeEx… in update()
69 public final void update(byte[] data, int off, int len) throws java.security.SignatureException { t… in update()
71 public final void update(java.nio.ByteBuffer data) throws java.security.SignatureException { throw … in update()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMySignature1.java29 import java.security.SignatureException;
76 protected void engineUpdate(byte b) throws SignatureException { in engineUpdate()
81 throws SignatureException { in engineUpdate()
92 protected byte[] engineSign() throws SignatureException { in engineSign()
98 protected boolean engineVerify(byte[] sigBytes) throws SignatureException { in engineVerify()
DKeyStoreTestSupport.java27 import java.security.SignatureException;
135 NoSuchProviderException, SignatureException { in verify()
141 SignatureException { in verify()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DSignerInfo.java41 import java.security.SignatureException;
327 throws NoSuchAlgorithmException, SignatureException { in verify()
339 throws NoSuchAlgorithmException, SignatureException, IOException { in verify()
384 throw new SignatureException("Digest check failed. " + in verify()
431 throw new SignatureException("Signature check failed. " + in verify()
446 throw new SignatureException("Public key check failed. " + in verify()
453 throw new SignatureException("Certificate has unsupported " in verify()
471 throw new SignatureException("Failed to parse keyUsage " in verify()
482 throw new SignatureException("Key usage restricted: " in verify()
503 throw new SignatureException("IO error verifying signature:\n" + in verify()
[all …]
/libcore/luni/src/test/java/tests/targets/security/
DSignatureTestMD2withRSA.java26 import java.security.SignatureException;
157 protected byte[] engineSign() throws SignatureException { in engineSign()
162 protected void engineUpdate(byte b) throws SignatureException { in engineUpdate()
167 throws SignatureException { in engineUpdate()
172 throws SignatureException { in engineVerify()
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DSignatureFileVerifier.java63 throws java.security.SignatureException { in getDigest()
72 java.security.SignatureException { in process()
81 java.security.SignatureException { in processImpl()
89 throws java.io.IOException, java.security.SignatureException { in verifyManifestHash()
95 throws java.io.IOException, java.security.SignatureException { in verifyManifestMainAttrs()
103 throws java.io.IOException, java.security.SignatureException { in verifySection()
110 java.security.NoSuchAlgorithmException, java.security.SignatureException { in getSigners()
/libcore/ojluni/src/main/java/java/security/cert/
DX509CRL.java31 import java.security.SignatureException;
196 SignatureException; in verify()
217 SignatureException; in verify()
243 InvalidKeyException, SignatureException { in verify()
DCertificate.java35 import java.security.SignatureException;
171 SignatureException; in verify()
192 SignatureException; in verify()
219 InvalidKeyException, SignatureException { in verify()
/libcore/ojluni/src/main/java/javax/security/cert/
DCertificate.java33 import java.security.SignatureException;
143 SignatureException; in verify()
162 SignatureException; in verify()
/libcore/ojluni/src/test/java/security/KeyStore/
DDefaultEntryType.java38 import java.security.SignatureException;
82 SignatureException { } in verify()
86 SignatureException { } in verify()
97 SignatureException { } in verify()
101 SignatureException { } in verify()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/
DCertificateTest.java33 import java.security.SignatureException;
51 NoSuchProviderException, SignatureException { in verify()
57 SignatureException { in verify()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DMyCertificate.java30 import java.security.SignatureException;
73 NoSuchProviderException, SignatureException { in verify()
81 InvalidKeyException, NoSuchProviderException, SignatureException { in verify()
/libcore/ojluni/annotations/hiddenapi/sun/security/pkcs/
DSignerInfo.java90 throws java.security.NoSuchAlgorithmException, java.security.SignatureException { in verify()
97 java.security.SignatureException { in verify()
102 throws java.security.NoSuchAlgorithmException, java.security.SignatureException { in verify()
147 java.security.NoSuchAlgorithmException, java.security.SignatureException { in getTimestamp()
152 throws java.security.NoSuchAlgorithmException, java.security.SignatureException { in verifyTimestamp()

123