Searched refs:match (Results 1 - 25 of 43) sorted by relevance

12

/libcore/ojluni/src/main/java/java/security/cert/
H A DCRLSelector.java57 boolean match(CRL crl); method in interface:CRLSelector
H A DCertSelector.java58 boolean match(Certificate cert); method in interface:CertSelector
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DX509CertSelectorTest.java35 byte[] match = { 127, 0, 0, 1 };
36 assertTrue(certSelector.match(newCertWithSubjectAltNameIpAddress(match)));
39 assertFalse(certSelector.match(newCertWithSubjectAltNameIpAddress(noMatch)));
46 byte[] match = { 127, 0, 0, 1 };
47 assertTrue(certSelector.match(newCertWithSubjectAltNameIpAddress(match)));
50 assertFalse(certSelector.match(newCertWithSubjectAltNameIpAddress(noMatch)));
58 byte[] match = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 };
59 assertTrue(certSelector.match(newCertWithSubjectAltNameIpAddres
[all...]
/libcore/luni/src/test/java/tests/security/cert/
H A DX509CertSelectorTest.java541 assertTrue("Any certificate should match in the case of null "
543 selector.match(cert1) && selector.match(cert2));
653 assertTrue("The certificate should match the selection criteria.",
654 selector.match(cert_1));
659 selector.match(cert_1));
794 * java.security.cert.X509CertSelector#match(java.security.cert.Certificate)
798 assertFalse(selector.match(null));
810 assertTrue(selector.match(cert1));
811 assertFalse(selector.match(cert
[all...]
H A DX509CRLSelector2Test.java62 * specified issuers match the selector, and if not specified issuer does
63 * not match the selector.
73 assertTrue("The CRL should match the selection criteria.", selector
74 .match(crl1));
75 assertFalse("The CRL should not match the selection criteria.",
76 selector.match(crl2));
78 assertTrue("The CRL should match the selection criteria.", selector
79 .match(crl2));
84 * issuers match the selector, and if not specified issuer does not match
[all...]
H A DCertStoreSpiTest.java81 public boolean match (CRL crl) { method in class:CertStoreSpiTest.tmpCRLSelector
89 public boolean match (Certificate crl) { method in class:CertStoreSpiTest.tmpCertSelector
H A DCertStore2Test.java295 public boolean match(CRL crl) { method in class:CertStore2Test.MyCRLSelector
305 public boolean match(CRL crl) { method in class:CertStore2Test.MyOtherCRLSelector
317 public boolean match(Certificate cert) { method in class:CertStore2Test.MyCertSelector
328 public boolean match(Certificate crl) { method in class:CertStore2Test.MyOtherCertSelector
/libcore/luni/src/test/java/libcore/java/nio/charset/
H A DOldCharset_SingleByteAbstractTest.java71 assertEqualChars2("Decoded charactes must match!",
75 // assertTrue("Decoded charactes (REPLACEed ones INCLUSIVE) must match!",
78 // assertEqualChars("Decoded charactes (REPLACEed ones INCLUSIVE) must match!",
82 // assertEquals("Decoded charactes must match!",
95 // assertEqualChars("Decoded charactes must match!",
98 //// assertEquals("Decoded charactes must match!",
110 assertEqualBytes2("Encoded bytes must match!", allBytes, outputBB.array(), allChars);
130 boolean match = true;
151 match = false;
157 // match
[all...]
H A DOldCharset_AbstractTest.java73 assertEquals("Name of charset must match!", charsetName, charset.name());
141 // assertTrue("Encoded bytes must match!",
143 assertEqualBytes("Encoded bytes must match!", testBytes, outputBB);
201 boolean match = true;
216 match = false;
224 assertTrue(msg, match);
242 boolean match = true;
256 match = false;
260 assertTrue(msg, match);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DHttpCookieTest.java109 boolean match = HttpCookie.domainMatches("hostname", "hostname");
110 assertFalse(match);
112 match = HttpCookie.domainMatches(".com", "test.com");
113 assertFalse(match);
115 match = HttpCookie.domainMatches(".com.", "test.com");
116 assertFalse(match);
120 match = HttpCookie.domainMatches(".local", "hostname");
121 assertTrue(match);
128 match = HttpCookie.domainMatches(".c.d", "a.b.c.d");
129 assertTrue(match);
[all...]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DIndexedCollectionCertStore.java227 * match the specified selector. If no <code>Certificate</code>s
228 * match the selector, an empty <code>Collection</code> will be returned.
234 * match the specified selector
241 // no selector means match all
253 if (selector.match(cert)) {
280 if (x509Selector.match(x509Entry)) {
291 if (x509Selector.match(cert)) {
314 if (selector.match(cert)) {
322 if (selector.match(cert)) {
332 * match th
[all...]
H A DDistributionPointFetcher.java210 if (selector.match(crl) && verifyCRL(certImpl, point, crl,
343 boolean match = false;
345 !match && t.hasNext(); ) {
349 match = true;
352 if (match == false) {
451 boolean match = false;
453 !match && i.hasNext(); ) {
459 !match && p.hasNext(); ) {
464 match = idpName.equals(pointName);
467 if (!match) {
[all...]
H A DCollectionCertStore.java106 * match the specified selector. If no <code>Certificate</code>s
107 * match the selector, an empty <code>Collection</code> will be returned.
113 * match the specified selector
129 selector.match((Certificate) o))
147 * match the specified selector. If no <code>CRL</code>s
148 * match the selector, an empty <code>Collection</code> will be returned.
154 * match the specified selector
170 if ((o instanceof CRL) && selector.match((CRL) o))
H A DAdaptableX509CertSelector.java97 * the subject criterion before call match().
140 public boolean match(Certificate cert) { method in class:AdaptableX509CertSelector
175 // does not match the replacement root certificate fields.
186 return super.match(cert);
H A DKeyChecker.java116 targetConstraints.match(currCert) == false) {
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ldap/
H A DLDAPCertStore.java432 * match the specified CertSelector.
436 * @param sel a CertSelector that the Certificates must match
462 if (sel.match(cert)) {
529 * containing all Certificates stored in the forward component that match
531 * component that match the reverse CertSelector.
550 // Find Certificates that match and put them in a list
556 if ((cert != null) && forward.match(cert)) {
562 if ((cert != null) && reverse.match(cert)) {
572 * match the specified selector. If no <code>Certificate</code>s
573 * match th
1016 public boolean match(Certificate cert) { method in class:LDAPCertStore.LDAPCertSelector
1077 public boolean match(CRL crl) { method in class:LDAPCertStore.LDAPCRLSelector
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DExchanger.java166 * changed, but cannot yet proceed until match is set. In the
169 * the linearization point to be a CAS of the match field (as done
219 * slot CASes, it would also be legal for the write to Node.match
256 * The bound for spins while waiting for a match. The actual
287 volatile Object match; // Item provided by releasing thread field in class:Exchanger.Node
337 q.match = item;
349 Object v = p.match;
365 spins = SPINS; // releaser hasn't set match yet
432 q.match = item;
458 while ((v = p.match)
[all...]
H A DSynchronousQueue.java190 * to match a waiting node.
207 volatile SNode match; // the node matched to this field in class:SynchronousQueue.TransferStack.SNode
225 * Tries to match node s to this node, if so, waking up thread.
229 * @param s the node to match
233 if (match == null &&
242 return match == s;
253 return match == this;
264 (SNode.class.getDeclaredField("match"));
304 * mode, try to push node on stack and wait for a match,
308 * try to push a fulfilling node on to stack, match
[all...]
/libcore/ojluni/src/main/java/java/util/jar/
H A DJarVerifier.java584 CodeSigner[] match;
585 match = ((VerifierCodeSource) sourceList.get(j)).getPrivateSigners();
586 if (match == null) {
587 match = emptySigner;
589 return match;
693 CodeSigner[] match = findMatchingSigners(cs[i]);
694 if (match != null) {
695 if (match.length > 0) {
696 req.add(match);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DScannerTest.java514 * @tests java.util.Scanner#match()
520 s.match();
526 result = s.match();
545 s.match();
552 s.match();
557 result = s.match();
571 s.match();
578 result = s.match();
591 result = s.match();
608 s.match();
[all...]
/libcore/ojluni/src/main/java/java/util/regex/
H A DPattern.java47 * a {@link Matcher} object that can match arbitrary {@link
49 * expression. All of the state involved in performing a match resides in the
79 * summary="Regular expression constructs, and what they match">
153 * <td headers="matches">Any character (may or may not match <a href="#lt">line terminators</a>)</td></tr>
242 * <td headers="matches">The end of the previous match</td></tr>
337 * <td headers="matches">Nothing, but turns match flags <a href="#CASE_INSENSITIVE">i</a>
387 * and leads to a compile-time error; in order to match the string
460 * line terminators and only match at the beginning and the end, respectively,
488 * <p> Capturing groups are so named because, during a match, each subsequence
491 * may also be retrieved from the matcher once the match operatio
[all...]
/libcore/ojluni/src/main/java/sun/security/pkcs/
H A DSignerInfo.java248 boolean match = false;
266 match = true;
272 if (!match)
335 return null; // contentType does not match, bad SignerInfo
/libcore/ojluni/src/main/java/sun/security/util/
H A DHostnameChecker.java85 * @exception CertificateException if the name does not match any of
88 public void match(String expectedName, X509Certificate cert) method in class:HostnameChecker
100 public static boolean match(String expectedName, Principal principal) { method in class:HostnameChecker
136 * in the certificate and must exactly match the IP in the URI.
146 // For IP address, it needs to be exact match
171 * the certificate (e.g., more than one dNSName name, a match in any one
190 // but none match, reject
262 * considered to match any single domain name component
294 * E.g. *.bar.com would match a.bar.com, b.bar.com, etc. but not
314 // match res
[all...]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DMatchOpTest.java101 boolean match = this.<T>kinds().get(kind).apply(predicates[i]).apply(source.stream());
102 assertEquals(answers[i], match, kind.toString() + predicates[i].toString());
186 boolean match = intKinds.get(kind).apply(predicates[i]).apply(source.get());
187 assertEquals(answers[i], match, kind.toString() + predicates[i].toString());
271 boolean match = longKinds.get(kind).apply(predicates[i]).apply(source.get());
272 assertEquals(answers[i], match, kind.toString() + predicates[i].toString());
356 boolean match = doubleKinds.get(kind).apply(predicates[i]).apply(source.get());
357 assertEquals(answers[i], match, kind.toString() + predicates[i].toString());
/libcore/ojluni/src/main/java/sun/net/www/
H A DParseUtil.java451 if (!match(c, lowMask, highMask) && !isEscaped(s, i)) {
486 && match(s.charAt(pos + 1), L_HEX, H_HEX)
487 && match(s.charAt(pos + 2), L_HEX, H_HEX);
519 private static boolean match(char c, long lowMask, long highMask) { method in class:ParseUtil

Completed in 898 milliseconds

12