/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | HostnameVerifierTest.java | 40 assertFalse(hv.verify("localhost", session)); in test_verify() 53 assertFalse(verifier.verify("foo.com", session)); in testVerify() 54 assertFalse(verifier.verify("a.foo.com", session)); in testVerify() 55 assertFalse(verifier.verify("bar.com", session)); in testVerify() 61 assertFalse(verifier.verify("\u82b1\u5b50.co.jp", session)); in testVerify() 62 assertFalse(verifier.verify("a.\u82b1\u5b50.co.jp", session)); in testVerify() 68 assertFalse(verifier.verify("foo.com", session)); in testVerify() 69 assertFalse(verifier.verify("a.foo.com", session)); in testVerify() 70 assertTrue(verifier.verify("bar.com", session)); in testVerify() 71 assertFalse(verifier.verify("a.bar.com", session)); in testVerify() [all …]
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | BlockGuardOsTest.java | 64 import static org.mockito.Mockito.verify; 104 verify(mockThreadPolicy).onWriteToDisk(); in test_blockguardOsIsNotifiedByDefault_rename() 105 verify(mockVmPolicy).onPathAccess(oldPath); in test_blockguardOsIsNotifiedByDefault_rename() 106 verify(mockVmPolicy).onPathAccess(newPath); in test_blockguardOsIsNotifiedByDefault_rename() 126 verify(mockThreadPolicy, times(0)).onNetwork(); in test_android_getaddrinfo_networkPolicy() 127 verify(mockOsDelegate, times(1)).android_getaddrinfo(node, numericAddrInfo, netId); in test_android_getaddrinfo_networkPolicy() 139 verify(mockThreadPolicy, times(1)).onNetwork(); in test_android_getaddrinfo_networkPolicy() 140 verify(mockOsDelegate, times(1)).android_getaddrinfo(node, nonNumericAddrInfo, netId); in test_android_getaddrinfo_networkPolicy() 153 verify(mockThreadPolicy, never()).onNetwork(); in test_connect_networkPolicy() 154 verify(mockOsDelegate, times(1)).connect(eq(udpSocket), any(), anyInt()); in test_connect_networkPolicy() [all …]
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | JarFile.java | 76 private boolean verify; field in JarFile 119 public JarFile(String name, boolean verify) throws IOException { in JarFile() argument 120 this(new File(name), verify, ZipFile.OPEN_READ); in JarFile() 147 public JarFile(File file, boolean verify) throws IOException { in JarFile() argument 148 this(file, verify, ZipFile.OPEN_READ); in JarFile() 168 public JarFile(File file, boolean verify, int mode) throws IOException { in JarFile() argument 170 this.verify = verify; in JarFile() 200 if (verify) { in getManifestFromReference() 342 if (verify) { in maybeInstantiateVerifier() 361 verify = false; in maybeInstantiateVerifier() [all …]
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateTest.java | 202 c1.verify(null); in testVerifyPublicKey() 221 c1.verify((PublicKey) null, (String) null); in testVerifyPublicKeyString() 238 c1.verify((PublicKey) null, (Provider) null); in testVerifyPublicKeyProvider() 354 cert.verify(cert.getPublicKey(), provider.getName()); in testVerifyPublicKeyString2() 359 cert.verify(cert.getPublicKey(), "UnknownProvider"); in testVerifyPublicKeyString2() 405 cert.verify(cert.getPublicKey(), provider); in testVerifyPublicKeyProvider2() 407 cert.verify(cert.getPublicKey(), (Provider)null); in testVerifyPublicKeyProvider2() 425 c1.verify(null); in testVerifyPublicKey2() 427 cert.verify(cert.getPublicKey()); in testVerifyPublicKey2() 435 cert.verify(c1.getPublicKey()); in testVerifyPublicKey2() [all …]
|
D | X509CRLTest.java | 108 public void verify(PublicKey key) in verify() method in X509CRLTest.TBTCRL 115 public void verify(PublicKey key, String sigProvider) in verify() method in X509CRLTest.TBTCRL 318 crl.verify(null); in testAbstractMethods() 319 crl.verify(null, "test"); in testAbstractMethods()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | IcuZoneRulesProvider.java | 107 verify(timeZone instanceof BasicTimeZone, zoneId, in generateZoneRules() 155 verify(hadEffect, zoneId, "Transition changed neither total nor raw offset."); in generateZoneRules() 162 verify(last1.getEndYear() == AnnualTimeZoneRule.MAX_YEAR, zoneId, in generateZoneRules() 167 verify(last2.getEndYear() == AnnualTimeZoneRule.MAX_YEAR, zoneId, in generateZoneRules() 172 verify(transition.getTo() == last1, zoneId, in generateZoneRules() 178 verify(last1 == null, zoneId, "Unexpected rule after AnnualTimeZoneRule."); in generateZoneRules() 180 verify(transitionCount <= MAX_TRANSITIONS, zoneId, in generateZoneRules() 187 verify(last2 != null, zoneId, "Only one AnnualTimeZoneRule."); in generateZoneRules() 208 private static void verify(boolean check, String zoneId, String message) { in verify() method in IcuZoneRulesProvider
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | TreeSetTest.java | 43 @Override protected void verify(NavigableSet<String> deserialized) { in testSerializationWithComparator() method 61 @Override protected void verify(SortedSet<String> deserialized) { in testSubSetSerialization() method 79 @Override protected void verify(SortedSet<String> deserialized) { in testNavigableSubSetSerialization() method 116 @Override protected void verify(NavigableSet<String> deserialized) { in testDescendingSetSerialization() method 131 @Override protected void verify(TreeSet<String> deserialized) { in testJava5SerializationWithComparator() method
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | SerializationTester.java | 53 protected void verify(T deserialized) throws Exception {} in verify() method in SerializationTester 73 verify(value); in test() 74 verify(deserialized); in test() 75 verify(reserialized); in test()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | PKCS7.java | 601 public SignerInfo verify(SignerInfo info, byte[] bytes) in verify() method in PKCS7 603 return info.verify(this, bytes); in verify() 617 public SignerInfo verify(SignerInfo info, InputStream dataInputStream) in verify() method in PKCS7 619 return info.verify(this, dataInputStream); in verify() 631 public SignerInfo[] verify(byte[] bytes) in verify() method in PKCS7 637 SignerInfo signerInfo = verify(signerInfos[i], bytes); in verify() 657 public SignerInfo[] verify() in verify() method in PKCS7 659 return verify(null); in verify() 956 public void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, in verify() method in PKCS7.WrappedX509Certificate 958 wrapped.verify(key); in verify() [all …]
|
D | SignerInfo.java | 320 SignerInfo verify(PKCS7 block, byte[] data) in verify() method in SignerInfo 323 return verify(block, new ByteArrayInputStream(data)); in verify() 332 SignerInfo verify(PKCS7 block, InputStream inputStream) in verify() method in SignerInfo 489 if (sig.verify(encryptedDigest)) { in verify() 505 SignerInfo verify(PKCS7 block) in verify() method in SignerInfo 509 return verify(block, (byte[]) null); in verify() 599 SignerInfo[] tsa = tsToken.verify(encTsTokenInfo); in getTimestamp()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | X509CRL.java | 193 public abstract void verify(PublicKey key) in verify() method in X509CRL 214 public abstract void verify(PublicKey key, String sigProvider) in verify() method in X509CRL 241 public void verify(PublicKey key, Provider sigProvider) in verify() method in X509CRL
|
D | Certificate.java | 167 public abstract void verify(PublicKey key) in verify() method in Certificate 188 public abstract void verify(PublicKey key, String sigProvider) in verify() method in Certificate 216 public void verify(PublicKey key, Provider sigProvider) in verify() method in Certificate
|
D | X509Certificate.java | 673 public void verify(PublicKey key, Provider sigProvider) in verify() method in X509Certificate 683 super.verify(key, sigProvider); in verify()
|
/libcore/ojluni/annotations/mmodule/sun/security/pkcs/ |
D | PKCS7.annotated.java | 58 public sun.security.pkcs.SignerInfo verify(sun.security.pkcs.SignerInfo info, byte[] bytes) throws … in verify() method in PKCS7 61 public sun.security.pkcs.SignerInfo verify(sun.security.pkcs.SignerInfo info, java.io.InputStream d… in verify() method in PKCS7 64 public sun.security.pkcs.SignerInfo[] verify(byte[] bytes) throws java.security.NoSuchAlgorithmExce… in verify() method in PKCS7 66 public sun.security.pkcs.SignerInfo[] verify() throws java.security.NoSuchAlgorithmException, java.… in verify() method in PKCS7
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | ChannelsTest.java | 97 Mockito.verify(abc).read(isA(ByteBuffer.class)); in testInputStreamAsynchronousByteChannel() 98 Mockito.verify(result).get(); in testInputStreamAsynchronousByteChannel() 124 Mockito.verify(abc).write(isA(ByteBuffer.class)); in testOutputStreamAsynchronousByteChannel() 125 Mockito.verify(result).get(); in testOutputStreamAsynchronousByteChannel()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/ |
D | X509CertificateTest.java | 552 public void verify(PublicKey key) throws CertificateException, in verify() method in X509CertificateTest.MyCertificate 558 public void verify(PublicKey key, String sigProvider) in verify() method in X509CertificateTest.MyCertificate 677 javaxCert.verify(javaxCert.getPublicKey()); in testVerifyPublicKey() 689 javaxCert.verify(tbt_cert.getPublicKey()); in testVerifyPublicKey() 696 javaxCert.verify(null); in testVerifyPublicKey() 702 javaxCert.verify(changedEncoding); in testVerifyPublicKey() 748 javaxCert.verify(javaxCert.getPublicKey(), myProvider.getName()); in testVerifyPublicKeyString() 766 javaxCert.verify(javaxCert.getPublicKey(), myProvider.getName()); in testVerifyPublicKeyString() 783 javaxSSCert.verify(javaxSSCert.getPublicKey(), in testVerifyPublicKeyString()
|
/libcore/ojluni/src/main/java/com/sun/security/cert/internal/x509/ |
D | X509V1CertImpl.java | 129 public void verify(PublicKey key) in verify() method in X509V1CertImpl 135 wrappedCert.verify(key); in verify() 150 public void verify(PublicKey key, String sigProvider) in verify() method in X509V1CertImpl 156 wrappedCert.verify(key, sigProvider); in verify()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | SignatureTest.java | 284 s.verify(b); in testVerifybyteArray() 291 s.verify(b); in testVerifybyteArray() 297 s.verify(b); in testVerifybyteArray() 309 s.verify(b, 0, 3); in testVerifybyteArrayintint() 317 s.verify(b, 0, 3); in testVerifybyteArrayintint() 325 s.verify(b, 0, 5); in testVerifybyteArrayintint() 330 s.verify(b, 0, 3); in testVerifybyteArrayintint() 565 public void verify(PublicKey key) {} in verify() method in SignatureTest.MyCertificate 567 public void verify(PublicKey key, String sigProvider) {} in verify() method in SignatureTest.MyCertificate
|
D | Signature2Test.java | 438 sig.verify(new byte[] { 0,1,2,3 }); in test_verify$B() 449 assertTrue("Sign/Verify does not pass", sig.verify(signature)); in test_verify$B() 463 assertTrue("Sign/Verify does not pass", sig.verify(signature, 0, in test_verify$BII() 467 sig.verify(null, 0, signature.length); in test_verify$BII() 473 sig.verify(signature, -5, signature.length); in test_verify$BII() 479 sig.verify(signature, signature.length, 0); in test_verify$BII() 485 sig.verify(signature, 0, signature.length * 2); in test_verify$BII()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | FilesTest.java | 57 import static org.mockito.Mockito.verify; 92 verify(mockFileSystemProvider).newInputStream(mockPath, READ); in test_newInputStream() 104 verify(mockFileSystemProvider).newOutputStream(mockPath, APPEND); in test_newOutputStream() 118 verify(mockFileSystemProvider).newByteChannel(mockPath, openOptions); in test_newByteChannel() 175 verify(mockFileSystemProvider).createDirectory(mockPath, attr); in test_createDirectory_delegation() 366 verify(mockFileSystemProvider).createSymbolicLink(mockPath, mockPath2, mockFileAttribute); in test_createSymbolicLink() 372 verify(mockFileSystemProvider).delete(mockPath); in test_delete() 379 verify(mockFileSystemProvider).deleteIfExists(mockPath); in test_deleteIfExist() 386 verify(mockFileSystemProvider).copy(mockPath, mockPath2, copyOption); in test_copy()
|
/libcore/ojluni/src/main/java/javax/security/cert/ |
D | Certificate.java | 140 public abstract void verify(PublicKey key) in verify() method in Certificate 159 public abstract void verify(PublicKey key, String sigProvider) in verify() method in Certificate
|
/libcore/ojluni/annotations/hiddenapi/java/util/jar/ |
D | JarFile.java | 39 public JarFile(java.lang.String name, boolean verify) throws java.io.IOException { in JarFile() argument 49 public JarFile(java.io.File file, boolean verify) throws java.io.IOException { in JarFile() argument 54 public JarFile(java.io.File file, boolean verify, int mode) throws java.io.IOException { in JarFile() argument 156 private boolean verify; field in JarFile
|
/libcore/ojluni/annotations/hiddenapi/sun/security/pkcs/ |
D | PKCS7.java | 106 public sun.security.pkcs.SignerInfo verify(sun.security.pkcs.SignerInfo info, byte[] bytes) in verify() method in PKCS7 111 public sun.security.pkcs.SignerInfo verify( in verify() method in PKCS7 119 public sun.security.pkcs.SignerInfo[] verify(byte[] bytes) in verify() method in PKCS7 124 public sun.security.pkcs.SignerInfo[] verify() in verify() method in PKCS7 307 public void verify(java.security.PublicKey key) in verify() method in PKCS7.WrappedX509Certificate 314 public void verify(java.security.PublicKey key, java.lang.String sigProvider) in verify() method in PKCS7.WrappedX509Certificate 352 public void verify(java.security.PublicKey key, java.security.Provider sigProvider) in verify() method in PKCS7.WrappedX509Certificate
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | DefaultHostnameVerifierTest.java | 150 verifier.verify(hostname, session); in testNullParameters() 153 verifier.verify(hostname, null); in testNullParameters() 159 verifier.verify(null, session); in testNullParameters() 424 assertFalse("Verifier should ignore CN.", verifier.verify(hostname, session)); in verifyWithDomainNamePattern() 431 return verifier.verify(hostname, session); in verifyWithDomainNamePattern() 441 return verifier.verify(hostname, session); in verifyWithServerCertificate() 696 @Override public void verify(PublicKey key) { in verify() method in DefaultHostnameVerifierTest.StubX509Certificate 700 @Override public void verify(PublicKey key, String sigProvider) { in verify() method in DefaultHostnameVerifierTest.StubX509Certificate
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | SignatureTest.java | 22 import static org.mockito.Mockito.verify; 332 s.verify(null /* outbuf */, 1 /* offset */, 1 /* length */); in testSignature_verifyArray_nullArray_throws() 342 s.verify(new byte[4], -1 /* offset */, 1 /* length */); in testSignature_verifyArray_negativeOffset_throws() 352 s.verify(new byte[4], 1 /* offset */ , -1 /* length */); in testSignature_verifyArray_negativeLength_throws() 363 s.verify(new byte[4], 3 /* offset */ , 2 /* length */); in testSignature_verifyArray_invalidLengths_throws() 373 s.verify(new byte[4], 1 /* offset */, 2 /* length */); in testSignature_verifyArray_correctParameters_ok() 516 verify(signatureSpi).engineGetParameters(); in testGetParameters_IsCalled()
|