/libcore/luni/src/test/java/tests/security/cert/ |
D | X509CRLSelector2Test.java | 51 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 …]
|
D | X509CertSelectorTest.java | 211 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 …]
|
D | X509CRLSelectorTest.java | 78 X509CRLSelector selector = new X509CRLSelector(); in test_addIssuerNameLjava_lang_String02() local 81 selector.addIssuerName((String) null); in test_addIssuerNameLjava_lang_String02() 118 X509CRLSelector selector = new X509CRLSelector(); in test_setIssuerNamesLjava_util_Collection01() local 119 selector.setIssuerNames(new TreeSet<Comparable>() { in test_setIssuerNamesLjava_util_Collection01()
|
D | CertStore2Test.java | 354 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/ |
D | SelectorTest.java | 36 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/ |
D | SelectorTest.java | 44 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 …]
|
D | SelectionKeyTest.java | 34 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/ |
D | ProxySelectorTest.java | 61 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/ |
D | URICertStore.java | 247 (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 …]
|
D | PKIXCertPathValidator.java | 90 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()
|
D | Builder.java | 427 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()
|
D | DistributionPointFetcher.java | 68 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()
|
D | CertStoreHelper.java | 129 public abstract X509CertSelector wrap(X509CertSelector selector, in wrap() argument 138 public abstract X509CRLSelector wrap(X509CRLSelector selector, in wrap() argument
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
D | MyCertStoreSpi.java | 51 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/ |
D | SelectionKeyImpl.java | 42 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()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CertStoreSpi.java | 96 (CertSelector selector) throws CertStoreException; in engineGetCertificates() argument 124 (CRLSelector selector) throws CertStoreException; in engineGetCRLs() argument
|
D | CertStore.java | 159 (CertSelector selector) throws CertStoreException { in getCertificates() argument 160 return storeSpi.engineGetCertificates(selector); in getCertificates() 188 public final Collection<? extends CRL> getCRLs(CRLSelector selector) in getCRLs() argument 190 return storeSpi.engineGetCRLs(selector); in getCRLs()
|
D | PKIXParameters.java | 651 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/ |
D | AbstractSelectionKey.java | 73 ((AbstractSelector)selector()).cancel(this); in cancel()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
D | AbstractSelectableChannelTest.java | 128 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()
|
D | AbstractSelectionKeyTest.java | 60 public Selector selector() { in selector() method in AbstractSelectionKeyTest.MockSelectionKey
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | SelectionKey.java | 134 public abstract Selector selector(); in selector() method in SelectionKey
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | SSLSocket.java | 1557 BiFunction<SSLSocket, List<String>, String> selector) { in setHandshakeApplicationProtocolSelector() argument
|
D | SSLEngine.java | 2056 BiFunction<SSLEngine, List<String>, String> selector) { in setHandshakeApplicationProtocolSelector() argument
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | ProviderTest.java | 849 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
|