/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | IntermediateTestOp.java | 31 public static<T> AbstractPipeline chain(AbstractPipeline upstream, method in interface:IntermediateTestOp 34 return StatelessTestOp.chain(upstream, (StatelessTestOp) op); 37 return StatefulTestOp.chain(upstream, (StatefulTestOp) op);
|
H A D | StatelessTestOp.java | 31 public static<T> AbstractPipeline chain(AbstractPipeline upstream, method in interface:StatelessTestOp
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
H A D | IntermediateTestOp.java | 33 public static<T> AbstractPipeline chain(AbstractPipeline upstream, method in interface:IntermediateTestOp 36 return StatelessTestOp.chain(upstream, (StatelessTestOp) op); 39 return StatefulTestOp.chain(upstream, (StatefulTestOp) op);
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
H A D | X509ExtendedTrustManager.java | 42 * certificate chain checks were done at the SSL/TLS layer, and the hostname 57 * Given the partial or complete certificate chain provided by the 80 * @param chain the peer certificate chain 86 * in for the <code>chain</code> parameter or if null or zero-length 88 * @throws CertificateException if the certificate chain is not trusted 96 public abstract void checkClientTrusted(X509Certificate[] chain, argument 100 * Given the partial or complete certificate chain provided by the 128 * @param chain the peer certificate chain 144 checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) argument 185 checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) argument 231 checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine) argument [all...] |
H A D | X509TrustManager.java | 41 * Given the partial or complete certificate chain provided by the 50 * @param chain the peer certificate chain 52 * @throws IllegalArgumentException if null or zero-length chain 53 * is passed in for the chain parameter or if null or zero-length 55 * @throws CertificateException if the certificate chain is not trusted 58 public void checkClientTrusted(X509Certificate[] chain, String authType) argument 62 * Given the partial or complete certificate chain provided by the 76 * @param chain the peer certificate chain 84 checkServerTrusted(X509Certificate[] chain, String authType) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/validator/ |
H A D | Validator.java | 78 * validator.validate(chain); // throws CertificateException if failed 201 * Validate the given certificate chain. 203 public final X509Certificate[] validate(X509Certificate[] chain) argument 205 return validate(chain, null, null); 209 * Validate the given certificate chain. If otherCerts is non-null, it is 213 public final X509Certificate[] validate(X509Certificate[] chain, argument 215 return validate(chain, otherCerts, null); 219 * Validate the given certificate chain. If otherCerts is non-null, it is 230 * @return a non-empty chain that was used to validate the path. The 233 public final X509Certificate[] validate(X509Certificate[] chain, argument 256 validate(X509Certificate[] chain, Collection<X509Certificate> otherCerts, AlgorithmConstraints constraints, Object parameter) argument 270 engineValidate(X509Certificate[] chain, Collection<X509Certificate> otherCerts, AlgorithmConstraints constraints, Object parameter) argument [all...] |
H A D | PKIXValidator.java | 202 X509Certificate[] engineValidate(X509Certificate[] chain, argument 206 if ((chain == null) || (chain.length == 0)) { 208 ("null or zero-length certificate chain"); 221 // check that chain is in correct order and check if chain contains 224 for (int i = 0; i < chain.length; i++) { 225 X509Certificate cert = chain[i]; 229 // chain is not ordered correctly, call builder instead 230 return doBuild(chain, otherCert 336 doValidate(X509Certificate[] chain, PKIXBuilderParameters params) argument 355 doBuild(X509Certificate[] chain, Collection<X509Certificate> otherCerts, PKIXBuilderParameters params) argument [all...] |
H A D | SimpleValidator.java | 120 * Perform simple validation of chain. The arguments otherCerts and 124 X509Certificate[] engineValidate(X509Certificate[] chain, argument 128 if ((chain == null) || (chain.length == 0)) { 130 ("null or zero-length certificate chain"); 133 // make sure chain includes a trusted cert 134 chain = buildTrustedChain(chain); 145 TrustAnchor anchor = new TrustAnchor(chain[chain 357 buildTrustedChain(X509Certificate[] chain) argument [all...] |
/libcore/xml/src/main/java/org/xmlpull/v1/ |
H A D | XmlPullParserException.java | 36 public XmlPullParserException(String msg, XmlPullParser parser, Throwable chain) { argument 39 + (chain == null ? "" : "caused by: "+chain)); 45 this.detail = chain;
|
/libcore/ojluni/src/main/java/com/sun/net/ssl/internal/ssl/ |
H A D | X509ExtendedTrustManager.java | 66 * Given the partial or complete certificate chain provided by the 80 * @param chain the peer certificate chain 84 * @throws IllegalArgumentException if null or zero-length chain 85 * is passed in for the chain parameter or if null or zero-length 87 * @throws CertificateException if the certificate chain is not trusted 90 public abstract void checkClientTrusted(X509Certificate[] chain, argument 95 * Given the partial or complete certificate chain provided by the 109 * @param chain the peer certificate chain 119 checkServerTrusted(X509Certificate[] chain, String authType, String hostname, String algorithm) argument [all...] |
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | TestTrustManager.java | 72 public void checkClientTrusted(X509Certificate[] chain, String authType) argument 75 + "chain=" + chain.length + " " 79 trustManager.checkClientTrusted(chain, authType); 88 public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) argument 92 checkClientTrusted(chain, authType); 96 + "chain=" + chain.length + " " 101 extendedTrustManager.checkClientTrusted(chain, authType, socket); 110 public void checkClientTrusted(X509Certificate[] chain, Strin argument 137 checkServerTrusted(X509Certificate[] chain, String authType) argument 153 checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) argument 175 checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/ssl/ |
H A D | X509TrustManagerImpl.java | 99 public void checkClientTrusted(X509Certificate chain[], String authType) argument 101 checkTrusted(chain, authType, (Socket)null, true); 105 public void checkServerTrusted(X509Certificate chain[], String authType) argument 107 checkTrusted(chain, authType, (Socket)null, false); 118 public void checkClientTrusted(X509Certificate[] chain, String authType, argument 120 checkTrusted(chain, authType, socket, true); 124 public void checkServerTrusted(X509Certificate[] chain, String authType, argument 126 checkTrusted(chain, authType, socket, false); 130 public void checkClientTrusted(X509Certificate[] chain, String authType, argument 132 checkTrusted(chain, authTyp 136 checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine) argument 141 checkTrustedInit(X509Certificate[] chain, String authType, boolean isClient) argument 184 checkTrusted(X509Certificate[] chain, String authType, Socket socket, boolean isClient) argument 239 checkTrusted(X509Certificate[] chain, String authType, SSLEngine engine, boolean isClient) argument 321 validate(Validator v, X509Certificate[] chain, AlgorithmConstraints constraints, String authType) argument [all...] |
H A D | SSLContextImpl.java | 787 public void checkClientTrusted(X509Certificate[] chain, String authType) argument 789 tm.checkClientTrusted(chain, authType); 793 public void checkServerTrusted(X509Certificate[] chain, String authType) argument 795 tm.checkServerTrusted(chain, authType); 804 public void checkClientTrusted(X509Certificate[] chain, String authType, argument 806 tm.checkClientTrusted(chain, authType); 807 checkAdditionalTrust(chain, authType, socket, true); 811 public void checkServerTrusted(X509Certificate[] chain, String authType, argument 813 tm.checkServerTrusted(chain, authType); 814 checkAdditionalTrust(chain, authTyp 818 checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) argument 825 checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine) argument 831 checkAdditionalTrust(X509Certificate[] chain, String authType, Socket socket, boolean isClient) argument 876 checkAdditionalTrust(X509Certificate[] chain, String authType, SSLEngine engine, boolean isClient) argument 918 checkAlgorithmConstraints(X509Certificate[] chain, AlgorithmConstraints constraints) argument 971 checkClientTrusted(X509Certificate[] chain, String authType) argument 985 checkServerTrusted(X509Certificate[] chain, String authType) argument 1001 checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) argument 1008 checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) argument 1015 checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) argument 1022 checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine) argument [all...] |
H A D | X509KeyManagerImpl.java | 283 boolean matches(Certificate[] chain) { argument 284 if (!chain[0].getPublicKey().getAlgorithm().equals(keyAlgorithm)) { 290 if (chain.length > 1) { 293 chain[1].getPublicKey().getAlgorithm()); 297 X509Certificate issuer = (X509Certificate)chain[0]; 449 Certificate[] chain, CheckResult checkResult) { 625 Certificate[] chain = ks.getCertificateChain(alias); 626 if ((chain == null) || (chain.length == 0)) { 632 for (Certificate cert : chain) { 448 EntryStatus(int builderIndex, int keyIndex, String alias, Certificate[] chain, CheckResult checkResult) argument 716 conformsToAlgorithmConstraints( AlgorithmConstraints constraints, Certificate[] chain) argument [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | TrustManagerFactoryTest.java | 156 X509Certificate[] chain = (X509Certificate[]) pke.getCertificateChain(); 159 tm.checkClientTrusted(chain, keyType); 164 tm.checkServerTrusted(chain, keyType); 169 tm.checkClientTrusted(chain, keyType); 170 tm.checkServerTrusted(chain, keyType); 212 // chain should be server/intermediate/root 214 X509Certificate[] chain = (X509Certificate[])pke.getCertificateChain(); 215 assertEquals(3, chain.length); 221 keyStore.setCertificateEntry("alias", chain[1]); 240 tm.checkClientTrusted(chain, "RS [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | KSPrivateKeyEntryTest.java | 58 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code> 73 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code> 75 * Assertion: throws NullPointerException when chain is null 76 * and throws IllegalArgumentException when chain length is 0 79 Certificate[] chain = null; 82 new KeyStore.PrivateKeyEntry(pk, chain); 83 fail("NullPointerException must be thrown when chain is null"); 87 chain = new Certificate[0]; 88 new KeyStore.PrivateKeyEntry(pk, chain); 89 fail("IllegalArgumentException must be thrown when chain lengt [all...] |
H A D | KeyStorePrivateKeyEntryTest.java | 71 // If all the certificate in the chain is X509Certificate, 75 Certificate[] chain = privateKeyEntry.getCertificateChain(); 76 assertTrue(chain instanceof X509Certificate[]);
|
H A D | KeyStore2Test.java | 276 // testing for a certificate chain 351 assertNull("the certificate chain returned from getCertificateChain is NOT null", 632 Certificate[] chain = { new MyCertificate("DSA", testEncoding), 634 KeyStore.PrivateKeyEntry pkEntry = new KeyStore.PrivateKeyEntry(getPrivateKey(), chain); 664 Certificate[] chain = { new MyCertificate(type, testEncoding), 673 chain); 675 privateKey1, chain); 755 Certificate[] chain = { new MyCertificate(type, testEncoding), 768 KeyStore.PrivateKeyEntry pke1 = new KeyStore.PrivateKeyEntry(getPrivateKey(), chain); 769 KeyStore.PrivateKeyEntry pke2 = new KeyStore.PrivateKeyEntry(privateKey1, chain); [all...] |
/libcore/ojluni/src/main/java/java/security/ |
H A D | KeyStore.java | 49 * unauthorized access. It is also accompanied by a certificate chain 388 * and corresponding certificate chain. 395 private final Certificate[] chain; field in class:KeyStore.PrivateKeyEntry 399 * <code>PrivateKey</code> and corresponding certificate chain. 401 * <p> The specified <code>chain</code> is cloned before it is stored 405 * @param chain an array of <code>Certificate</code>s 406 * representing the certificate chain. 407 * The chain must be ordered and contain a 412 * <code>privateKey</code> or <code>chain</code> 414 * @exception IllegalArgumentException if the specified chain ha 421 PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain) argument 929 setKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument 969 setKeyEntry(String alias, byte[] key, Certificate[] chain) argument [all...] |
H A D | KeyStoreSpi.java | 78 * Returns the certificate chain associated with the given alias. 79 * The certificate chain must have been associated with the alias 86 * @return the certificate chain (ordered with the user's certificate first 88 * does not exist or does not contain a certificate chain 105 * then the first element of the certificate chain in that entry 106 * (if a chain exists) is returned. 130 * it must be accompanied by a certificate chain certifying the 135 * certificate chain). 140 * @param chain the certificate chain fo 147 engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument 173 engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) argument [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | MyKeyStore.java | 93 Certificate[] chain) throws KeyStoreException { 98 if (chain != null) { 99 Chain.put(alias, chain); 104 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) argument 118 if (chain != null) { 119 Chain.put(alias, chain); 92 engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument
|
H A D | MyKeyStoreSpi.java | 69 Certificate[] chain) throws KeyStoreException { 74 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) argument 68 engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument
|
H A D | TestKeyStoreSpi.java | 198 Certificate[] chain) throws KeyStoreException { 207 if (chain == null || chain.length == 0) { 216 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) argument 197 engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
H A D | HandshakeCompletedEventTest.java | 555 * chain it sees, so it can later be queried. 559 private X509Certificate[] chain; field in class:HandshakeCompletedEventTest.TestTrustManager 563 public void checkClientTrusted(X509Certificate[] chain, String authType) { argument 564 this.chain = chain; 568 public void checkServerTrusted(X509Certificate[] chain, String authType) { argument 569 this.chain = chain; 578 return chain; 586 java.security.cert.X509Certificate[] chain, Strin 585 checkClientTrusted( java.security.cert.X509Certificate[] chain, String authType) argument 591 checkServerTrusted( java.security.cert.X509Certificate[] chain, String authType) argument [all...] |
/libcore/luni/src/test/java/libcore/java/security/cert/ |
H A D | CertPathValidatorTest.java | 103 ArrayList<X509Certificate> chain = new ArrayList<>(); 104 chain.add(serverCert); 105 chain.add((X509Certificate) caEntry.getCertificate()); 108 CertPath certPath = cf.generateCertPath(chain);
|