Searched refs:generateCert (Results 1 – 2 of 2) sorted by relevance
306 X509Certificate cert = generateCert(CERT_CORRECT); in testGetExtendedKeyUsage()488 assertEquals(5, generateCert(CERT_CORRECT).getBasicConstraints()); in testGetBasicConstraints()489 assertEquals(-1, generateCert(CERT_WITHOUT_BASIC).getBasicConstraints()); in testGetBasicConstraints()490 assertEquals(-1, generateCert(CERT_WITH_BASIC_NON_CA).getBasicConstraints()); in testGetBasicConstraints()491 assertEquals(0, generateCert(CERT_WITH_BASIC_CA_ZERO_PATH_LENGTH).getBasicConstraints()); in testGetBasicConstraints()492 …assertEquals(Integer.MAX_VALUE, generateCert(CERT_WITH_BASIC_CA_NO_PATH_LENGTH).getBasicConstraint… in testGetBasicConstraints()497 generateCert(CERT_TAMPERED); in testCertificateException()503 generateCert(CERT); in testCertificateException()509 public X509Certificate generateCert(String string) throws Exception { in generateCert() method in X509Certificate2Test
112 certs.add(generateCert(certStr, cf)); in runTest()120 TrustAnchor ta = new TrustAnchor(generateCert(trustedCertStr, cf), in runTest()134 private static X509Certificate generateCert(String certStr, in generateCert() method in PKIXCertPathValidatorValidity