Home
last modified time | relevance | path

Searched refs:selector (Results 1 – 25 of 30) sorted by relevance

12

/libcore/luni/src/test/java/tests/security/cert/
DX509CRLSelector2Test.java51 X509CRLSelector selector = new X509CRLSelector(); in testX509CRLSelector() local
52 assertNull(selector.getDateAndTime()); in testX509CRLSelector()
53 assertNull(selector.getCertificateChecking()); in testX509CRLSelector()
54 assertNull(selector.getIssuerNames()); in testX509CRLSelector()
55 assertNull(selector.getIssuers()); in testX509CRLSelector()
56 assertNull(selector.getMaxCRL()); in testX509CRLSelector()
57 assertNull(selector.getMinCRL()); in testX509CRLSelector()
66 X509CRLSelector selector = new X509CRLSelector(); in testAddIssuerLjavax_security_auth_x500_X500Principal02() local
72 selector.addIssuer(iss1); in testAddIssuerLjavax_security_auth_x500_X500Principal02()
73 assertTrue("The CRL should match the selection criteria.", selector in testAddIssuerLjavax_security_auth_x500_X500Principal02()
[all …]
DX509CertSelectorTest.java211 X509CertSelector selector = new X509CertSelector(); in test_X509CertSelector() local
212 assertEquals(-1, selector.getBasicConstraints()); in test_X509CertSelector()
213 assertTrue(selector.getMatchAllSubjectAltNames()); in test_X509CertSelector()
220 X509CertSelector selector = new X509CertSelector(); in test_clone() local
221 X509CertSelector selector1 = (X509CertSelector) selector.clone(); in test_clone()
223 assertEquals(selector.getMatchAllSubjectAltNames(), selector1.getMatchAllSubjectAltNames()); in test_clone()
224 assertEquals(selector.getAuthorityKeyIdentifier(), selector1.getAuthorityKeyIdentifier()); in test_clone()
225 assertEquals(selector.getBasicConstraints(), selector1.getBasicConstraints()); in test_clone()
226 assertEquals(selector.getCertificate(), selector1.getCertificate()); in test_clone()
227 assertEquals(selector.getCertificateValid(), selector1.getCertificateValid()); in test_clone()
[all …]
DCertStore2Test.java354 public Collection<? extends CRL> engineGetCRLs(CRLSelector selector) in engineGetCRLs() argument
356 if (selector != null) { in engineGetCRLs()
357 if (!(selector instanceof MyCRLSelector)) { in engineGetCRLs()
367 CertSelector selector) throws CertStoreException { in engineGetCertificates() argument
368 if (selector != null) { in engineGetCertificates()
369 if (!(selector instanceof MyCertSelector)) { in engineGetCertificates()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSelectorTest.java36 Selector selector = Selector.open(); in testNonBlockingConnect_immediate() local
45 SelectionKey key = sc.register(selector, SelectionKey.OP_CONNECT); in testNonBlockingConnect_immediate()
46 assertEquals(1, selector.select()); in testNonBlockingConnect_immediate()
50 selector.close(); in testNonBlockingConnect_immediate()
57 Selector selector = Selector.open(); in testInterrupted() local
60 int count = selector.select(); in testInterrupted()
67 selector.close(); in testInterrupted()
72 final Selector selector = Selector.open(); in testManyWakeupCallsTriggerOnlyOneWakeup() local
74 selector.wakeup(); in testManyWakeupCallsTriggerOnlyOneWakeup()
75 selector.wakeup(); in testManyWakeupCallsTriggerOnlyOneWakeup()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectorTest.java44 private Selector selector; field in SelectorTest
59 selector = Selector.open(); in setUp()
69 selector.close(); in tearDown()
80 assertNotNull(selector); in test_open()
87 assertTrue(selector.isOpen()); in test_isOpen()
88 selector.close(); in test_isOpen()
89 assertFalse(selector.isOpen()); in test_isOpen()
97 assertNotNull(selector.provider()); in test_provider()
98 assertSame(SelectorProvider.provider(), selector.provider()); in test_provider()
105 SelectionKey key = ssc.register(selector, SelectionKey.OP_ACCEPT); in test_keys()
[all …]
DSelectionKeyTest.java34 Selector selector; field in SelectionKeyTest
44 selector = Selector.open(); in setUp()
47 selectionKey = sc.register(selector, SelectionKey.OP_CONNECT); in setUp()
53 selector.close(); in tearDown()
54 selector = null; in tearDown()
89 public Selector selector() { in selector() method in SelectionKeyTest.MockSelectionKey
196 selector.close(); in test_isValid_SelectorClosed()
301 selector.select(); in test_readyOps()
314 assertSame(selector, selectionKey.selector()); in test_selector()
316 assertSame(selector, selectionKey.selector()); in test_selector()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DProxySelectorTest.java61 private ProxySelector selector = ProxySelector.getDefault(); field in ProxySelectorTest
113 proxyList = selector.select(httpUri); in test_selectLjava_net_URI_SelectExact()
129 proxyList = selector.select(httpUri); in test_selectLjava_net_URI_SelectExact()
132 proxyList = selector.select(httpsUri); in test_selectLjava_net_URI_SelectExact()
135 proxyList = selector.select(ftpUri); in test_selectLjava_net_URI_SelectExact()
138 proxyList = selector.select(tcpUri); in test_selectLjava_net_URI_SelectExact()
154 proxyList = selector.select(httpUri); in test_selectLjava_net_URI_SelectExact_NullHost()
170 proxyList = selector.select(httpUri); in test_selectLjava_net_URI_SelectExact_NullHost()
174 proxyList = selector.select(httpsUri); in test_selectLjava_net_URI_SelectExact_NullHost()
178 proxyList = selector.select(ftpUri); in test_selectLjava_net_URI_SelectExact_NullHost()
[all …]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DURICertStore.java247 (CertSelector selector) throws CertStoreException { in engineGetCertificates() argument
252 X509CertSelector xsel = (X509CertSelector) selector; in engineGetCertificates()
273 return getMatchingCerts(certs, selector); in engineGetCertificates()
289 return getMatchingCerts(certs, selector); in engineGetCertificates()
298 return getMatchingCerts(certs, selector); in engineGetCertificates()
309 return getMatchingCerts(certs, selector); in engineGetCertificates()
328 (Collection<X509Certificate> certs, CertSelector selector) { in getMatchingCerts() argument
330 if (selector == null) { in getMatchingCerts()
335 if (selector.match(cert)) { in getMatchingCerts()
356 public synchronized Collection<X509CRL> engineGetCRLs(CRLSelector selector) in engineGetCRLs() argument
[all …]
DPKIXCertPathValidator.java90 AdaptableX509CertSelector selector = null; in validate() local
93 selector = new AdaptableX509CertSelector(); in validate()
96 selector.setSubject(firstCert.getIssuerX500Principal()); in validate()
103 selector.setSkiAndSerialNumber( in validate()
119 if (selector != null && !selector.match(trustedCert)) { in validate()
DBuilder.java427 boolean addMatchingCerts(X509CertSelector selector, in addMatchingCerts() argument
432 X509Certificate targetCert = selector.getCertificate(); in addMatchingCerts()
435 if (selector.match(targetCert) && !X509CertImpl.isSelfSigned in addMatchingCerts()
453 store.getCertificates(selector); in addMatchingCerts()
DDistributionPointFetcher.java68 public static Collection<X509CRL> getCRLs(X509CRLSelector selector, in getCRLs() argument
78 return getCRLs(selector, signFlag, prevKey, null, provider, certStores, in getCRLs()
86 public static Collection<X509CRL> getCRLs(X509CRLSelector selector, in getCRLs() argument
97 X509Certificate cert = selector.getCertificateChecking(); in getCRLs()
121 Collection<X509CRL> crls = getCRLs(selector, certImpl, in getCRLs()
144 private static Collection<X509CRL> getCRLs(X509CRLSelector selector, in getCRLs() argument
208 selector.setIssuerNames(null); in getCRLs()
209 if (selector.match(crl) && verifyCRL(certImpl, point, crl, in getCRLs()
DForwardBuilder.java455 X509CertSelector selector = new X509CertSelector(); in getSelector() local
456 selector.setSubjectKeyIdentifier(skid); in getSelector()
457 return selector; in getSelector()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DMyCertStoreSpi.java51 public Collection<Certificate> engineGetCertificates(CertSelector selector) in engineGetCertificates() argument
53 if (selector == null) { in engineGetCertificates()
59 public Collection<CRL> engineGetCRLs(CRLSelector selector) in engineGetCRLs() argument
61 if (selector == null) { in engineGetCRLs()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSelectionKeyImpl.java42 public final SelectorImpl selector; field in SelectionKeyImpl
52 selector = sel; in SelectionKeyImpl()
59 public Selector selector() { in selector() method in SelectionKeyImpl
60 return selector; in selector()
DSinkChannelImpl.java149 sk.selector.putEventOps(sk, ops); in translateAndSetInterestOps()
/libcore/ojluni/src/main/java/java/security/cert/
DCertStoreSpi.java96 (CertSelector selector) throws CertStoreException; in engineGetCertificates() argument
124 (CRLSelector selector) throws CertStoreException; in engineGetCRLs() argument
DPKIXParameters.java651 public void setTargetCertConstraints(CertSelector selector) { in setTargetCertConstraints() argument
652 if (selector != null) in setTargetCertConstraints()
653 certSelector = (CertSelector) selector.clone(); in setTargetCertConstraints()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractSelectionKey.java73 ((AbstractSelector)selector()).cancel(this); in cancel()
DAbstractSelectableChannel.java123 if ((keys[i] != null) && (keys[i].selector() == sel)) in findKey()
/libcore/ojluni/src/main/java/java/nio/channels/
DSelectionKey.java134 public abstract Selector selector(); in selector() method in SelectionKey
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DAbstractSelectionKeyTest.java60 public Selector selector() { in selector() method in AbstractSelectionKeyTest.MockSelectionKey
DAbstractSelectableChannelTest.java128 Selector selector = Selector.open(); in test_register_LSelectorILObject() local
129 channel.register(selector, 0); in test_register_LSelectorILObject()
130 selector.close(); in test_register_LSelectorILObject()
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLSocket.java1557 BiFunction<SSLSocket, List<String>, String> selector) { in setHandshakeApplicationProtocolSelector() argument
DSSLEngine.java2056 BiFunction<SSLEngine, List<String>, String> selector) { in setHandshakeApplicationProtocolSelector() argument
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java849 public Collection<? extends Certificate> engineGetCertificates(CertSelector selector) in engineGetCertificates() argument
855 public Collection<? extends CRL> engineGetCRLs(CRLSelector selector) in engineGetCRLs() argument
868 public Collection<? extends Certificate> engineGetCertificates(CertSelector selector) in engineGetCertificates() argument
874 public Collection<? extends CRL> engineGetCRLs(CRLSelector selector) in engineGetCRLs() argument
887 public Collection<? extends Certificate> engineGetCertificates(CertSelector selector) in engineGetCertificates() argument
893 public Collection<? extends CRL> engineGetCRLs(CRLSelector selector) in engineGetCRLs() argument

12