/libcore/luni/src/test/java/tests/security/cert/ |
H A D | X509CertSelectorTest.java | 211 X509CertSelector selector = new X509CertSelector(); 212 assertEquals(-1, selector.getBasicConstraints()); 213 assertTrue(selector.getMatchAllSubjectAltNames()); 220 X509CertSelector selector = new X509CertSelector(); 221 X509CertSelector selector1 = (X509CertSelector) selector.clone(); 223 assertEquals(selector.getMatchAllSubjectAltNames(), selector1.getMatchAllSubjectAltNames()); 224 assertEquals(selector.getAuthorityKeyIdentifier(), selector1.getAuthorityKeyIdentifier()); 225 assertEquals(selector.getBasicConstraints(), selector1.getBasicConstraints()); 226 assertEquals(selector.getCertificate(), selector1.getCertificate()); 227 assertEquals(selector [all...] |
H A D | X509CRLSelector2Test.java | 51 X509CRLSelector selector = new X509CRLSelector(); 52 assertNull(selector.getDateAndTime()); 53 assertNull(selector.getCertificateChecking()); 54 assertNull(selector.getIssuerNames()); 55 assertNull(selector.getIssuers()); 56 assertNull(selector.getMaxCRL()); 57 assertNull(selector.getMinCRL()); 62 * specified issuers match the selector, and if not specified issuer does 63 * not match the selector. 66 X509CRLSelector selector [all...] |
H A D | X509CRLSelectorTest.java | 78 X509CRLSelector selector = new X509CRLSelector(); 81 selector.addIssuerName((String) null); 118 X509CRLSelector selector = new X509CRLSelector(); 119 selector.setIssuerNames(new TreeSet<Comparable>() {
|
H A D | CertStore2Test.java | 354 public Collection<? extends CRL> engineGetCRLs(CRLSelector selector) argument 356 if (selector != null) { 357 if (!(selector instanceof MyCRLSelector)) { 367 CertSelector selector) throws CertStoreException { 368 if (selector != null) { 369 if (!(selector instanceof MyCertSelector)) { 366 engineGetCertificates( CertSelector selector) argument
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | SelectorTest.java | 37 Selector selector = Selector.open(); 46 SelectionKey key = sc.register(selector, SelectionKey.OP_CONNECT); 47 assertEquals(1, selector.select()); 51 selector.close(); 58 Selector selector = Selector.open(); 64 SelectionKey key = sc.register(selector, SelectionKey.OP_CONNECT); 65 assertEquals(1, selector.select()); 69 selector.close(); 76 Selector selector = Selector.open(); 79 int count = selector [all...] |
/libcore/ojluni/src/main/java/java/security/cert/ |
H A D | CertStoreSpi.java | 72 * match the specified selector. If no <code>Certificate</code>s 73 * match the selector, an empty <code>Collection</code> will be returned. 77 * <code>Certificate</code>s that match the selector. For instance, 88 * @param selector A <code>CertSelector</code> used to select which 92 * match the specified selector (never <code>null</code>) 96 (CertSelector selector) throws CertStoreException; 100 * match the specified selector. If no <code>CRL</code>s 101 * match the selector, an empty <code>Collection</code> will be returned. 105 * <code>CRL</code>s that match the selector. For instance, 116 * @param selector 95 engineGetCertificates(CertSelector selector) argument 123 engineGetCRLs(CRLSelector selector) argument [all...] |
H A D | CertStore.java | 52 * {@link #getCertificates(CertSelector selector) getCertificates} and 53 * {@link #getCRLs(CRLSelector selector) getCRLs} methods. 135 * match the specified selector. If no <code>Certificate</code>s 136 * match the selector, an empty <code>Collection</code> will be returned. 140 * <code>Certificate</code>s that match the selector. For instance, 151 * @param selector A <code>CertSelector</code> used to select which 155 * match the specified selector (never <code>null</code>) 159 (CertSelector selector) throws CertStoreException { 160 return storeSpi.engineGetCertificates(selector); 165 * match the specified selector 158 getCertificates(CertSelector selector) argument 188 getCRLs(CRLSelector selector) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
H A D | SelectorTest.java | 44 private Selector selector; field in class:SelectorTest 59 selector = Selector.open(); 69 selector.close(); 80 assertNotNull(selector); 87 assertTrue(selector.isOpen()); 88 selector.close(); 89 assertFalse(selector.isOpen()); 97 assertNotNull(selector.provider()); 98 assertSame(SelectorProvider.provider(), selector.provider()); 105 SelectionKey key = ssc.register(selector, SelectionKe [all...] |
H A D | SelectionKeyTest.java | 34 Selector selector; field in class:SelectionKeyTest 44 selector = Selector.open(); 47 selectionKey = sc.register(selector, SelectionKey.OP_CONNECT); 53 selector.close(); 54 selector = null; 89 public Selector selector() { method in class:SelectionKeyTest.MockSelectionKey 196 selector.close(); 301 selector.select(); 311 * @tests java.nio.channels.SelectionKey#selector() 314 assertSame(selector, selectionKe [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | SelectionKeyImpl.java | 42 final SelectorImpl selector; // package-private field in class:SelectionKeyImpl 52 selector = sel; 59 public Selector selector() { method in class:SelectionKeyImpl 60 return selector;
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
H A D | MyCertStoreSpi.java | 51 public Collection<Certificate> engineGetCertificates(CertSelector selector) argument 53 if (selector == null) { 59 public Collection<CRL> engineGetCRLs(CRLSelector selector) argument 61 if (selector == null) {
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ldap/ |
H A D | LDAPCertStore.java | 457 /* decode certs and check if they satisfy selector */ 572 * match the specified selector. If no <code>Certificate</code>s 573 * match the selector, an empty <code>Collection</code> will be returned. 581 * subject nor the issuer are specified (or the selector is not an 585 * @param selector a <code>CertSelector</code> used to select which 588 * match the specified selector 592 (CertSelector selector) throws CertStoreException { 594 debug.println("LDAPCertStore.engineGetCertificates() selector: " 595 + String.valueOf(selector)); 598 if (selector 591 engineGetCertificates(CertSelector selector) argument 773 engineGetCRLs(CRLSelector selector) argument 926 private X509CertSelector selector; field in class:LDAPCertStore.LDAPCertSelector 937 LDAPCertSelector(X509CertSelector selector, X500Principal certSubject, String ldapDN) argument 1032 private X509CRLSelector selector; field in class:LDAPCertStore.LDAPCRLSelector 1045 LDAPCRLSelector(X509CRLSelector selector, Collection<X500Principal> certIssuers, String ldapDN) argument [all...] |
H A D | LDAPCertStoreHelper.java | 58 public X509CertSelector wrap(X509CertSelector selector, argument 63 return new LDAPCertStore.LDAPCertSelector(selector, certSubject, ldapDN); 67 public X509CRLSelector wrap(X509CRLSelector selector, argument 72 return new LDAPCertStore.LDAPCRLSelector(selector, certIssuers, ldapDN);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | ProxySelectorTest.java | 61 private ProxySelector selector = ProxySelector.getDefault(); field in class:ProxySelectorTest 113 proxyList = selector.select(httpUri); 129 proxyList = selector.select(httpUri); 132 proxyList = selector.select(httpsUri); 135 proxyList = selector.select(ftpUri); 138 proxyList = selector.select(tcpUri); 154 proxyList = selector.select(httpUri); 170 proxyList = selector.select(httpUri); 174 proxyList = selector.select(httpsUri); 178 proxyList = selector [all...] |
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
H A D | CollectionCertStore.java | 106 * match the specified selector. If no <code>Certificate</code>s 107 * match the selector, an empty <code>Collection</code> will be returned. 109 * @param selector a <code>CertSelector</code> used to select which 113 * match the specified selector 118 (CertSelector selector) throws CertStoreException { 126 if (selector != null) { 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. 150 * @param selector 117 engineGetCertificates(CertSelector selector) argument 158 engineGetCRLs(CRLSelector selector) argument [all...] |
H A D | IndexedCollectionCertStore.java | 227 * match the specified selector. If no <code>Certificate</code>s 228 * match the selector, an empty <code>Collection</code> will be returned. 230 * @param selector a <code>CertSelector</code> used to select which 234 * match the specified selector 238 public Collection<? extends Certificate> engineGetCertificates(CertSelector selector) argument 241 // no selector means match all 242 if (selector == null) { 249 if (selector instanceof X509CertSelector == false) { 251 matchX509Certs(selector, matches); 253 if (selector 308 matchX509Certs(CertSelector selector, Collection<Certificate> matches) argument 343 engineGetCRLs(CRLSelector selector) argument 404 matchX509CRLs(CRLSelector selector, Collection<CRL> matches) argument [all...] |
H A D | URICertStore.java | 234 * match the specified selector. If no <code>X509Certificate</code>s 235 * match the selector, an empty <code>Collection</code> will be returned. 237 * @param selector a <code>CertSelector</code> used to select which 241 * match the specified selector 247 (CertSelector selector) throws CertStoreException { 252 X509CertSelector xsel = (X509CertSelector) selector; 260 // Safe cast since xsel is an X509 certificate selector. 273 return getMatchingCerts(certs, selector); 289 return getMatchingCerts(certs, selector); 298 return getMatchingCerts(certs, selector); 246 engineGetCertificates(CertSelector selector) argument 327 getMatchingCerts(Collection<X509Certificate> certs, CertSelector selector) argument 356 engineGetCRLs(CRLSelector selector) argument 439 getMatchingCRLs(X509CRL crl, CRLSelector selector) argument [all...] |
H A D | PKIXCertPathValidator.java | 90 AdaptableX509CertSelector selector = null; 93 selector = new AdaptableX509CertSelector(); 96 selector.setSubject(firstCert.getIssuerX500Principal()); 98 selector.setValidityPeriod(firstCert.getNotBefore(), 106 selector.parseAuthorityKeyIdentifierExtension( 122 if (selector != null && !selector.match(trustedCert)) {
|
H A D | CertStoreHelper.java | 129 public abstract X509CertSelector wrap(X509CertSelector selector, argument 138 public abstract X509CRLSelector wrap(X509CRLSelector selector, argument
|
H A D | Builder.java | 415 * selector to resultCerts. Self-signed certs are not useful here 418 * If the targetCert criterion of the selector is set, only that cert 427 boolean addMatchingCerts(X509CertSelector selector, argument 432 X509Certificate targetCert = selector.getCertificate(); 435 if (selector.match(targetCert) && !X509CertImpl.isSelfSigned 448 store.getCertificates(selector);
|
H A D | DistributionPointFetcher.java | 66 * Return the X509CRLs matching this selector. The selector must be 69 public static Collection<X509CRL> getCRLs(X509CRLSelector selector, argument 79 return getCRLs(selector, signFlag, prevKey, null, provider, certStores, 84 * Return the X509CRLs matching this selector. The selector must be 87 public static Collection<X509CRL> getCRLs(X509CRLSelector selector, argument 98 X509Certificate cert = selector.getCertificateChecking(); 122 Collection<X509CRL> crls = getCRLs(selector, certImpl, 145 private static Collection<X509CRL> getCRLs(X509CRLSelector selector, argument [all...] |
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
H A D | AbstractSelectionKey.java | 64 * selector's cancelled-key set while synchronized on that set. </p> 69 // condition between selector's select() and channel's close(). 73 ((AbstractSelector)selector()).cancel(this);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
H A D | AbstractSelectionKeyTest.java | 29 * @tests AbstractSelectionKey#isValid() without selector 45 // expected: no selector available 60 public Selector selector() { method in class:AbstractSelectionKeyTest.MockSelectionKey
|
H A D | AbstractSelectableChannelTest.java | 124 // Regression test to ensure acceptance of a selector with empty 128 Selector selector = Selector.open(); 129 channel.register(selector, 0); 130 selector.close(); 158 // in nonblocking mode, if selector closed 195 // in blocking mode, if selector closed
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | SelectionKey.java | 37 * selector. A key remains valid until it is <i>cancelled</i> by invoking its 39 * selector. Cancelling a key does not immediately remove it from its 40 * selector; it is instead added to the selector's <a 54 * be tested for readiness the next time one of the selector's selection 60 * the key's channel has been detected to be ready by the key's selector. 62 * be updated by the selector during a selection operation, but it cannot be 93 * synchronized with certain operations of the selector. Exactly how this 118 // -- Channel and selector operations -- 129 * Returns the selector fo 134 public abstract Selector selector(); method in class:SelectionKey [all...] |