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

/libcore/luni/src/main/java/java/security/cert/
H A DCRLSelector.java40 * Checks whether the defined criteria of this instance match the specified
48 public boolean match(CRL crl); method in interface:CRLSelector
H A DCertSelector.java40 * Checks whether the defined criteria of this instance match the specified
48 public boolean match(Certificate cert); method in interface:CertSelector
H A DX509CRLSelector.java34 * X509CRL}s that match the specified criteria.
36 * When constructed, all criteria are set to default values that will match any
64 * The CRL issuer must match at least one of the specified distinguished
68 * the list of issuer distinguished names to match, or {@code
89 * The CRL issuer must match at least one of the specified distinguished
98 * the list of issuer distinguished names to match, or {@code
131 * The CRL issuer must match at least one of the specified distinguished
161 * {@link #addIssuerName(byte[])} instead. It can fail to match some CRLs
165 * CRK issuer must match at least one of the specified distinguished names.
190 * The CRL issuer must match a
402 public boolean match(CRL crl) { method in class:X509CRLSelector
[all...]
H A DX509CertSelector.java48 * X509Certificate}s that match the specified criteria.
52 // match criteria
86 * the certificate to match, or null to not check this criteria.
95 * @return the certificate to match, or null if this criteria is not
103 * Sets the serial number that a certificate must match.
106 * the serial number to match, or {@code null} to not check the
114 * Returns the serial number that a certificate must match.
116 * @return the serial number to match, or {@code null} if the serial number
124 * Sets the issuer that a certificate must match.
127 * the issuer to match, o
1102 public boolean match(Certificate certificate) { method in class:X509CertSelector
[all...]
/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.java564 assertTrue("Any certificate should match in the case of null "
566 .match(cert1)
567 && selector.match(cert2));
675 assertTrue("The certificate should match the selection criteria.",
676 selector.match(cert_1));
680 + "of internal object.", selector.match(cert_1));
830 * java.security.cert.X509CertSelector#match(java.security.cert.Certificate)
835 assertFalse(selector.match(null));
847 assertTrue(selector.match(cert1));
848 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());
130 // assertTrue("Decoded charactes must match!",
132 assertEqualChars("Decoded charactes must match!",
135 // assertEqualChars2("Decoded charactes must match!",
139 // assertTrue("Decoded charactes (REPLACEed ones INCLUSIVE) must match!",
142 // assertEqualChars("Decoded charactes (REPLACEed ones INCLUSIVE) must match!",
146 // assertEquals("Decoded charactes must match!",
161 // assertTrue("Encoded bytes must match!",
163 assertEqualBytes("Encoded bytes must match!", testBytes, outputBB);
216 boolean match
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DOldScannerTest.java42 MatchResult mresult = s.match();
53 mresult = s.match();
61 mresult = s.match();
72 s.match();
86 mresult = s.match();
92 mresult = s.match();
97 mresult = s.match();
131 mresult = s.match();
139 mresult = s.match();
148 MatchResult matchResult = s.match();
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DSynchronousQueue.java185 * to match a waiting node.
202 volatile SNode match; // the node matched to this field in class:SynchronousQueue.TransferStack.SNode
220 * Tries to match node s to this node, if so, waking up thread.
224 * @param s the node to match
228 if (match == null &&
237 return match == s;
248 return match == this;
261 (k.getDeclaredField("match"));
300 * mode, try to push node on stack and wait for a match,
304 * try to push a fulfilling node on to stack, match
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DTrustedCertificateStore.java317 @Override public boolean match(X509Certificate cert) {
328 * match on the name and public key and not the entire certificate
336 @Override public boolean match(X509Certificate ca) {
360 // match on verified issuer of Certificate
362 @Override public boolean match(X509Certificate ca) {
433 /* Get the first Directory Name (DN) to match how OpenSSL works. */
488 public boolean match(X509Certificate cert); method in interface:TrustedCertificateStore.CertSelector
498 // could not find a match, no file exists, bail
518 if (selector.match(cert)) {
/libcore/luni/src/main/java/java/text/
H A DMessageFormat.java299 * When a single argument is parsed more than once in the string, the last match
315 * match. For example:
927 private int match(String string, ParsePosition position, boolean last, method in class:MessageFormat
966 int type = match(string, position, false,
981 int dateStyle = match(string, position, true,
1008 int numberStyle = match(string, position, true,
/libcore/luni/src/main/java/java/net/
H A DURI.java780 boolean match = first.substring(prevIndex, index).equals(
782 if (!match) {
786 match = first.substring(index + 1, index + 3).equalsIgnoreCase(
788 if (!match) {
/libcore/luni/src/main/java/java/util/
H A DScanner.java379 // the match result according to the Spec
414 * match a substring of the input data.
434 * match. For example, when the input is "123" and current position is at zero,
566 // if the next token exists, set the match region, otherwise return
953 * The next* and find* methods return the match result in the case of a
954 * successful match.
956 * @return the match result of the last successful match operation
958 * if the match result is not available, of if the last match
961 public MatchResult match() { method in class:Scanner
[all...]

Completed in 310 milliseconds