Home
last modified time | relevance | path

Searched refs:chain (Results 1 – 25 of 42) sorted by relevance

12

/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestTrustManager.java72 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 …]
DTestSSLContext.java366 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/
DX509ExtendedTrustManager.java96 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
DX509TrustManager.java58 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/
DXmlPullParserException.java36 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/
DKeyStore.java498 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 …]
DKeyStoreSpi.java150 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/
DIntermediateTestOp.java31 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()
DOpTestCase.java223 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 …]
DStatelessTestOp.java31 public static<T> AbstractPipeline chain(AbstractPipeline upstream, in chain() method
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DIntermediateTestOp.java33 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()
DOpTestCase.java224 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 …]
DStatelessTestOp.java39 public static<T> AbstractPipeline chain(AbstractPipeline upstream, in chain() method
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DHandshakeCompletedEventTest.java556 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/
DX509ExtendedTrustManager.java90 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/
DMyKeyStore.java93 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()
DTestKeyStoreSpi.java198 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
DMyKeyStoreSpi.java69 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/
DKeyStore2Test.java632 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 …]
DKSPrivateKeyEntryTest.java82 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()
DKeyStorePrivateKeyEntryTest.java75 Certificate[] chain = privateKeyEntry.getCertificateChain(); in testGetCertificateChain() local
76 assertTrue(chain instanceof X509Certificate[]); in testGetCertificateChain()
/libcore/luni/src/test/java/libcore/java/security/cert/
DCertPathValidatorTest.java113 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/
DKeyStore.java94 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/
DEnableDeprecatedBouncyCastleAlgorithmsRuleTest.java41 public TestRule chain = RuleChain field in EnableDeprecatedBouncyCastleAlgorithmsRuleTest
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java1132 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()

12