/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestTrustManager.java | 72 public void checkClientTrusted(X509Certificate[] chain, String authType) in checkClientTrusted() argument 75 + "chain=" + chain.length + " " in checkClientTrusted() 79 trustManager.checkClientTrusted(chain, authType); in checkClientTrusted() 88 public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) in checkClientTrusted() argument 92 checkClientTrusted(chain, authType); in checkClientTrusted() 96 + "chain=" + chain.length + " " in checkClientTrusted() 101 extendedTrustManager.checkClientTrusted(chain, authType, socket); in checkClientTrusted() 110 public void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) in checkClientTrusted() argument 114 checkClientTrusted(chain, authType); in checkClientTrusted() 118 + "chain=" + chain.length + " " in checkClientTrusted() [all …]
|
D | TestSSLContext.java | 366 X509Certificate[] chain = (X509Certificate[]) serverChain; in assertServerCertificateChain() local 367 trustManager.checkServerTrusted(chain, chain[0].getPublicKey().getAlgorithm()); in assertServerCertificateChain() 373 X509Certificate[] chain = (X509Certificate[]) clientChain; in assertClientCertificateChain() local 374 trustManager.checkClientTrusted(chain, chain[0].getPublicKey().getAlgorithm()); in assertClientCertificateChain()
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | X509ExtendedTrustManager.java | 96 public abstract void checkClientTrusted(X509Certificate[] chain, in checkClientTrusted() argument 144 public abstract void checkServerTrusted(X509Certificate[] chain, in checkServerTrusted() argument 185 public abstract void checkClientTrusted(X509Certificate[] chain, in checkClientTrusted() argument 231 public abstract void checkServerTrusted(X509Certificate[] chain, in checkServerTrusted() argument
|
D | X509TrustManager.java | 58 public void checkClientTrusted(X509Certificate[] chain, String authType) in checkClientTrusted() argument 84 public void checkServerTrusted(X509Certificate[] chain, String authType) in checkServerTrusted() argument
|
/libcore/xml/src/main/java/org/xmlpull/v1/ |
D | XmlPullParserException.java | 36 public XmlPullParserException(String msg, XmlPullParser parser, Throwable chain) { in XmlPullParserException() argument 39 + (chain == null ? "" : "caused by: "+chain)); in XmlPullParserException() 45 this.detail = chain; in XmlPullParserException()
|
/libcore/ojluni/src/main/java/java/security/ |
D | KeyStore.java | 498 private final Certificate[] chain; field in KeyStore.PrivateKeyEntry 525 public PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain) { in PrivateKeyEntry() argument 526 this(privateKey, chain, Collections.<Attribute>emptySet()); in PrivateKeyEntry() 555 public PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain, in PrivateKeyEntry() argument 558 if (privateKey == null || chain == null || attributes == null) { in PrivateKeyEntry() 561 if (chain.length == 0) { in PrivateKeyEntry() 566 Certificate[] clonedChain = chain.clone(); in PrivateKeyEntry() 587 this.chain = new X509Certificate[clonedChain.length]; in PrivateKeyEntry() 589 this.chain, 0, clonedChain.length); in PrivateKeyEntry() 591 this.chain = clonedChain; in PrivateKeyEntry() [all …]
|
D | KeyStoreSpi.java | 150 Certificate[] chain) in engineSetKeyEntry() argument 175 Certificate[] chain) in engineSetKeyEntry() argument 484 Certificate[] chain = engineGetCertificateChain(alias); in engineGetEntry() local 485 return new KeyStore.PrivateKeyEntry((PrivateKey)key, chain); in engineGetEntry()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | IntermediateTestOp.java | 31 public static<T> AbstractPipeline chain(AbstractPipeline upstream, in chain() method 34 return StatelessTestOp.chain(upstream, (StatelessTestOp) op); in chain() 37 return StatefulTestOp.chain(upstream, (StatefulTestOp) op); in chain()
|
D | OpTestCase.java | 223 return new ExerciseDataStreamBuilder<>(data, (S_IN s) -> (S_OUT) chain(s, ops)); in ops() 233 … return new ExerciseDataStreamBuilder<>(data, s -> (S_OUT) chain(m.apply(s), additionalOp)); in stream() 461 source = (BaseStream) chain(source, new ShortCircuitOp(shape)); in SINGLE_SEQUENTIAL_SHORT_CIRCUIT() 473 source = (BaseStream) chain(source, new ShortCircuitOp(shape)); in ALL_SEQUENTIAL_SHORT_CIRCUIT() 617 …private static <T> AbstractPipeline<?, T, ?> chain(AbstractPipeline upstream, IntermediateTestOp<?… in chain() method in OpTestCase 618 return (AbstractPipeline<?, T, ?>) IntermediateTestOp.chain(upstream, op); in chain() 622 … private static AbstractPipeline<?, ?, ?> chain(AbstractPipeline pipe, IntermediateTestOp... ops) { in chain() method in OpTestCase 624 pipe = chain(pipe, op); in chain() 629 … private static <T> AbstractPipeline<?, T, ?> chain(BaseStream pipe, IntermediateTestOp<?, T> op) { in chain() method in OpTestCase 630 return chain((AbstractPipeline) pipe, op); in chain() [all …]
|
D | StatelessTestOp.java | 31 public static<T> AbstractPipeline chain(AbstractPipeline upstream, in chain() method
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | IntermediateTestOp.java | 33 public static<T> AbstractPipeline chain(AbstractPipeline upstream, in chain() method 36 return StatelessTestOp.chain(upstream, (StatelessTestOp) op); in chain() 39 return StatefulTestOp.chain(upstream, (StatefulTestOp) op); in chain()
|
D | OpTestCase.java | 224 return new ExerciseDataStreamBuilder<>(data, (S_IN s) -> (S_OUT) chain(s, ops)); in ops() 234 … return new ExerciseDataStreamBuilder<>(data, s -> (S_OUT) chain(m.apply(s), additionalOp)); in stream() 462 source = (BaseStream) chain(source, new ShortCircuitOp(shape)); in SINGLE_SEQUENTIAL_SHORT_CIRCUIT() 474 source = (BaseStream) chain(source, new ShortCircuitOp(shape)); in ALL_SEQUENTIAL_SHORT_CIRCUIT() 618 …private static <T> AbstractPipeline<?, T, ?> chain(AbstractPipeline upstream, IntermediateTestOp<?… in chain() method in OpTestCase 619 return (AbstractPipeline<?, T, ?>) IntermediateTestOp.chain(upstream, op); in chain() 623 … private static AbstractPipeline<?, ?, ?> chain(AbstractPipeline pipe, IntermediateTestOp... ops) { in chain() method in OpTestCase 625 pipe = chain(pipe, op); in chain() 630 … private static <T> AbstractPipeline<?, T, ?> chain(BaseStream pipe, IntermediateTestOp<?, T> op) { in chain() method in OpTestCase 631 return chain((AbstractPipeline) pipe, op); in chain() [all …]
|
D | StatelessTestOp.java | 39 public static<T> AbstractPipeline chain(AbstractPipeline upstream, in chain() method
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | HandshakeCompletedEventTest.java | 556 private X509Certificate[] chain; field in HandshakeCompletedEventTest.TestTrustManager 560 public void checkClientTrusted(X509Certificate[] chain, String authType) { in checkClientTrusted() argument 561 this.chain = chain; in checkClientTrusted() 565 public void checkServerTrusted(X509Certificate[] chain, String authType) { in checkServerTrusted() argument 566 this.chain = chain; in checkServerTrusted() 575 return chain; in getChain() 583 java.security.cert.X509Certificate[] chain, String authType) in checkClientTrusted() argument 589 java.security.cert.X509Certificate[] chain, String authType) in checkServerTrusted() argument
|
/libcore/ojluni/src/main/java/com/sun/net/ssl/internal/ssl/ |
D | X509ExtendedTrustManager.java | 90 public abstract void checkClientTrusted(X509Certificate[] chain, in checkClientTrusted() argument 119 public abstract void checkServerTrusted(X509Certificate[] chain, in checkServerTrusted() argument
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | MyKeyStore.java | 93 Certificate[] chain) throws KeyStoreException { in engineSetKeyEntry() argument 98 if (chain != null) { in engineSetKeyEntry() 99 Chain.put(alias, chain); in engineSetKeyEntry() 104 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) in engineSetKeyEntry() argument 118 if (chain != null) { in engineSetKeyEntry() 119 Chain.put(alias, chain); in engineSetKeyEntry()
|
D | TestKeyStoreSpi.java | 198 Certificate[] chain) throws KeyStoreException { in engineSetKeyEntry() argument 207 if (chain == null || chain.length == 0) { in engineSetKeyEntry() 216 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) in engineSetKeyEntry() argument
|
D | MyKeyStoreSpi.java | 69 Certificate[] chain) throws KeyStoreException { in engineSetKeyEntry() argument 74 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) in engineSetKeyEntry() argument
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStore2Test.java | 632 Certificate[] chain = { new MyCertificate("DSA", testEncoding), in test_deleteEntry() local 634 KeyStore.PrivateKeyEntry pkEntry = new KeyStore.PrivateKeyEntry(getPrivateKey(), chain); in test_deleteEntry() 664 Certificate[] chain = { new MyCertificate(type, testEncoding), in test_getCreationDate() local 673 chain); in test_getCreationDate() 675 privateKey1, chain); in test_getCreationDate() 755 Certificate[] chain = { new MyCertificate(type, testEncoding), in test_getEntry() local 768 KeyStore.PrivateKeyEntry pke1 = new KeyStore.PrivateKeyEntry(getPrivateKey(), chain); in test_getEntry() 769 KeyStore.PrivateKeyEntry pke2 = new KeyStore.PrivateKeyEntry(privateKey1, chain); in test_getEntry() 780 assertTrue(Arrays.equals(chain, pkeActual1.getCertificateChain())); in test_getEntry() 785 assertTrue(Arrays.equals(chain, pkeActual2.getCertificateChain())); in test_getEntry() [all …]
|
D | KSPrivateKeyEntryTest.java | 82 Certificate[] chain = null; in testPrivateKeyEntry02() local 85 new KeyStore.PrivateKeyEntry(pk, chain); in testPrivateKeyEntry02() 90 chain = new Certificate[0]; in testPrivateKeyEntry02() 91 new KeyStore.PrivateKeyEntry(pk, chain); in testPrivateKeyEntry02()
|
D | KeyStorePrivateKeyEntryTest.java | 75 Certificate[] chain = privateKeyEntry.getCertificateChain(); in testGetCertificateChain() local 76 assertTrue(chain instanceof X509Certificate[]); in testGetCertificateChain()
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | CertPathValidatorTest.java | 113 ArrayList<X509Certificate> chain = new ArrayList<>(); in runOCSPStapledTest() local 114 chain.add(serverCert); in runOCSPStapledTest() 115 chain.add((X509Certificate) caEntry.getCertificate()); in runOCSPStapledTest() 118 CertPath certPath = cf.generateCertPath(chain); in runOCSPStapledTest()
|
/libcore/ojluni/annotations/hiddenapi/java/security/ |
D | KeyStore.java | 94 java.security.cert.Certificate[] chain) in setKeyEntry() argument 100 java.lang.String alias, byte[] key, java.security.cert.Certificate[] chain) in setKeyEntry() argument 392 java.security.PrivateKey privateKey, java.security.cert.Certificate[] chain) { in PrivateKeyEntry() argument 398 java.security.cert.Certificate[] chain, in PrivateKeyEntry() argument 429 private final java.security.cert.Certificate[] chain; field in KeyStore.PrivateKeyEntry 432 chain = new java.security.cert.Certificate[0];
|
/libcore/test-rules/src/test/java/libcore/junit/util/ |
D | EnableDeprecatedBouncyCastleAlgorithmsRuleTest.java | 41 public TestRule chain = RuleChain field in EnableDeprecatedBouncyCastleAlgorithmsRuleTest
|
/libcore/support/src/test/java/libcore/java/security/ |
D | TestKeyStore.java | 1132 Certificate[] chain = keyStore.getCertificateChain(alias); in dump() local 1133 if (chain == null) { in dump() 1137 for (int i = 0; i < chain.length; i++) { in dump() 1139 out.println(chain[i]); in dump() 1149 public static void assertChainLength(Object[] chain) { in assertChainLength() argument 1155 assertEquals(3, chain.length); in assertChainLength()
|