Home
last modified time | relevance | path

Searched refs:TestUtils (Results 1 – 22 of 22) sorted by relevance

/libcore/luni/src/test/java/tests/security/cert/
DPKIXCertPathBuilderResultTest.java28 import org.apache.harmony.security.tests.support.cert.TestUtils;
82 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathBuilderResult01()
90 TestUtils.getPolicyTree(), in testPKIXCertPathBuilderResult01()
105 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathBuilderResult02()
125 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathBuilderResult03()
135 TestUtils.getPolicyTree(), in testPKIXCertPathBuilderResult03()
154 TestUtils.getPolicyTree(), in testPKIXCertPathBuilderResult04()
168 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathBuilderResult05()
178 TestUtils.getPolicyTree(), in testPKIXCertPathBuilderResult05()
187 TrustAnchor ta = TestUtils.getTrustAnchor(); in test_clone()
[all …]
DPKIXCertPathValidatorResultTest.java34 import org.apache.harmony.security.tests.support.cert.TestUtils;
73 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathValidatorResult01()
79 TestUtils.getPolicyTree(), in testPKIXCertPathValidatorResult01()
94 TestUtils.getPolicyTree(), in testPKIXCertPathValidatorResult02()
108 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathValidatorResult03()
116 TestUtils.getPolicyTree(), in testPKIXCertPathValidatorResult03()
129 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathValidatorResult04()
147 TrustAnchor ta = TestUtils.getTrustAnchor(); in testGetTrustAnchor()
170 TrustAnchor ta = TestUtils.getTrustAnchor(); in testGetPublicKey()
196 TrustAnchor ta = TestUtils.getTrustAnchor(); in testGetPolicyTree01()
[all …]
DPKIXCertPathCheckerTest.java35 import org.apache.harmony.security.tests.support.cert.TestUtils;
54 PKIXCertPathChecker pc1 = TestUtils.getTestCertPathChecker(); in testClone()
65 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker(); in testIsForwardCheckingSupported()
70 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker(); in testInit()
74 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker(); in testGetSupportedExtensions()
78 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker(); in testCheck_Cert_Collection()
83 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker(); in testCheck_Cert()
DCertificateCertificateRepTest.java6 import org.apache.harmony.security.tests.support.cert.TestUtils;
48 "X509", TestUtils.getX509Certificate_v3()); in testCertificateCertificateRep()
50 assertTrue(Arrays.equals(TestUtils.getX509Certificate_v3(), rep1.getData())); in testCertificateCertificateRep()
71 MyCertificateRep rep1 = c1.new MyCertificateRep("X509", TestUtils in testReadResolve()
DCertPathTest.java32 import org.apache.harmony.security.tests.support.cert.TestUtils;
225 TestUtils.initCertPathSSCertChain(); in testSerializationSelf()
226 CertPath certPath = TestUtils.buildCertPathSSCertChain(); in testSerializationSelf()
235 TestUtils.initCertPathSSCertChain(); in testSerializationCompatibility()
236 CertPath certPath = TestUtils.buildCertPathSSCertChain(); in testSerializationCompatibility()
DCertificateFactory3Test.java28 import org.apache.harmony.security.tests.support.cert.TestUtils;
92 TestUtils.getEncodedX509Certificate())); in testGenerateCertificate()
106 .generateCertificate(new ByteArrayInputStream(TestUtils in testGenerateCertificates()
111 TestUtils.getEncodedX509Certificate())); in testGenerateCertificates()
127 .generateCertificate(new ByteArrayInputStream(TestUtils in testGenerateCertPath01()
DCertificateTest.java45 import org.apache.harmony.security.tests.support.cert.TestUtils;
333 TestUtils.initCertPathSSCertChain(); in setUp()
334 cert = TestUtils.rootCertificateSS; in setUp()
464 TestUtils.initCertPathSSCertChain(); in testSerializationSelf()
466 SerializationTest.verifySelf(TestUtils.rootCertificateSS); in testSerializationSelf()
475 TestUtils.initCertPathSSCertChain(); in testSerializationCompatibility()
477 SerializationTest.verifyGolden(this, TestUtils.rootCertificateSS); in testSerializationCompatibility()
DX509CRLTest.java48 import org.apache.harmony.security.tests.support.cert.TestUtils;
259 return TestUtils.getX509CRL_v1(); in testGetIssuerX500Principal()
277 return TestUtils.getX509CRL_v1(); in testGetRevokedCertificate()
300 return TestUtils.getX509CRL_v1(); in testAbstractMethods()
DX509Certificate2Test.java20 import org.apache.harmony.security.tests.support.cert.TestUtils;
49 .generateCertificate(new ByteArrayInputStream(TestUtils in test_toString()
284 return TestUtils.getX509Certificate_v1(); in testGetIssuerX500Principal()
297 return TestUtils.getX509Certificate_v1(); in testGetSubjectX500Principal()
DCertPathValidator3Test.java30 import org.apache.harmony.security.tests.support.cert.TestUtils;
95 CertPathParameters params = new PKIXParameters(TestUtils.getTrustAnchorSet()); in testValidate01()
DPKIXBuilderParametersTest.java41 import org.apache.harmony.security.tests.support.cert.TestUtils;
88 Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet(); in testPKIXBuilderParametersSetCertSelector01()
107 Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet(); in testPKIXBuilderParametersSetCertSelector02()
127 Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet(); in testPKIXBuilderParametersSetCertSelector03()
DCertPathBuilder1Test.java27 import org.apache.harmony.security.tests.support.cert.TestUtils;
318 TestUtils.initCertPathSSCertChain(); in testBuild()
319 CertPathParameters params = TestUtils.getCertPathParameters(); in testBuild()
320 CertPathBuilder builder = TestUtils.getCertPathBuilder(); in testBuild()
DCertPathValidator2Test.java29 import org.apache.harmony.security.tests.support.cert.TestUtils;
235 CertPathParameters params = new PKIXParameters(TestUtils.getTrustAnchorSet()); in testValidate()
DX509CRLSelector2Test.java5 import org.apache.harmony.security.tests.support.cert.TestUtils;
315 .generateCertificate(new ByteArrayInputStream(TestUtils in testSetCertificateCheckingLjava_X509Certificate()
433 .generateCertificate(new ByteArrayInputStream(TestUtils in testGetCertificateCheckingLjava_X509Certificate()
DX509CertSelectorTest.java59 import org.apache.harmony.security.tests.support.cert.TestUtils;
293 TestUtils.getX509Certificate_v3())); in test_getCertificate()
297 TestUtils.getX509Certificate_v1())); in test_getCertificate()
804 TestUtils.getX509Certificate_v3())); in test_matchLjava_security_cert_Certificate()
808 TestUtils.getX509Certificate_v1())); in test_matchLjava_security_cert_Certificate()
1958 ByteArrayInputStream bi = new ByteArrayInputStream(TestUtils.rootCert.getBytes()); in setupEnvironment()
1960 bi = new ByteArrayInputStream(TestUtils.endCert.getBytes()); in setupEnvironment()
2005 TestUtils.initCertPathSSCertChain(); in test_addPathToNameLintLbyte_array2()
2032 …theCertSelector.addPathToName(4, TestUtils.rootCertificateSS.getIssuerX500Principal().getEncoded()… in test_addPathToNameLintLbyte_array2()
2034 p = TestUtils.buildCertPathSSCertChain(); in test_addPathToNameLintLbyte_array2()
/libcore/luni/src/test/java/libcore/java/security/cert/
DOldPKIXParametersTest.java36 import org.apache.harmony.security.tests.support.cert.TestUtils;
45 Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet(); in testClone()
102 Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet(); in testIsPolicyMappingInhibited()
111 TestUtils.initCertPathSSCertChain(); in testIsPolicyMappingInhibited()
113 TestUtils.rootCertificateSS, null)); in testIsPolicyMappingInhibited()
130 Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet(); in testIsRevocationEnabled()
140 TestUtils.initCertPathSSCertChain(); in testIsRevocationEnabled()
142 TestUtils.rootCertificateSS, null)); in testIsRevocationEnabled()
154 Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet(); in testToString()
206 keystore.setCertificateEntry("test", TestUtils.rootCertificateSS); in testPKIXParametersKeyStore04()
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DReentrantReadWriteLockTest.java80 if(!TestUtils.waitWhileTrueOrTimeout(Duration.ofSeconds(2), in waitForQueuedThread()
112 TestUtils.joinThreadOrFail(2000, thread1); in testGetQueuedReaderThreads()
113 TestUtils.joinThreadOrFail(2000, thread2); in testGetQueuedReaderThreads()
131 TestUtils.joinThreadOrFail(2000, thread1); in testGetQueuedWriterThreads()
132 TestUtils.joinThreadOrFail(2000, thread2); in testGetQueuedWriterThreads()
DTestUtils.java24 class TestUtils { class
DRecursiveTaskTest.java51 if(!TestUtils.waitWhileTrueOrTimeout(Duration.ofSeconds(10), in waitForCompletion()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DX509TrustManagerTest.java9 import org.apache.harmony.security.tests.support.cert.TestUtils;
17 new ByteArrayInputStream(TestUtils.getX509Certificate_v3())); in setX509Certificate()
25 new ByteArrayInputStream(TestUtils.getX509Certificate_v1())); in setInvalid()
DHttpsURLConnectionTest.java34 import org.apache.harmony.security.tests.support.cert.TestUtils;
274 byte[] barr = TestUtils.getX509Certificate_v1(); in getLocalCertificates()
289 byte[] barr = TestUtils.getX509Certificate_v3(); in getServerCertificates()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/x500/
DX500PrincipalTest.java33 import org.apache.harmony.security.tests.support.cert.TestUtils;
80 byte[] ba = getByteArray(TestUtils.getX509Certificate_v1()); in test_X500Principal_02()
116 byte[] ba = getByteArray(TestUtils.getX509Certificate_v1()); in test_X500Principal_03()
234 byte[] ba = getByteArray(TestUtils.getX509Certificate_v1()); in test_getEncoded()