cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ashaki...@apache.org
Subject svn commit: r1494552 - in /cxf/trunk/services/xkms/xkms-x509-handlers/src: main/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidator.java test/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidatorTest.java
Date Wed, 19 Jun 2013 11:21:50 GMT
Author: ashakirin
Date: Wed Jun 19 11:21:50 2013
New Revision: 1494552

URL: http://svn.apache.org/r1494552
Log:
[CXF-5075]: fixed and enabled trusted test for Java 6

Modified:
    cxf/trunk/services/xkms/xkms-x509-handlers/src/main/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidator.java
    cxf/trunk/services/xkms/xkms-x509-handlers/src/test/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidatorTest.java

Modified: cxf/trunk/services/xkms/xkms-x509-handlers/src/main/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/services/xkms/xkms-x509-handlers/src/main/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidator.java?rev=1494552&r1=1494551&r2=1494552&view=diff
==============================================================================
--- cxf/trunk/services/xkms/xkms-x509-handlers/src/main/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidator.java
(original)
+++ cxf/trunk/services/xkms/xkms-x509-handlers/src/main/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidator.java
Wed Jun 19 11:21:50 2013
@@ -73,6 +73,7 @@ public class TrustedAuthorityValidator i
             PKIXBuilderParameters pkixParams = new PKIXBuilderParameters(trustAnchors, selector);
             pkixParams.addCertStore(CertStore.getInstance("Collection", intermediateParams));
             pkixParams.addCertStore(CertStore.getInstance("Collection", certificateParams));
+            pkixParams.setRevocationEnabled(false);
             CertPathBuilder builder = CertPathBuilder.getInstance("PKIX");
             builder.build(pkixParams);
         } catch (InvalidAlgorithmParameterException e) {

Modified: cxf/trunk/services/xkms/xkms-x509-handlers/src/test/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidatorTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/services/xkms/xkms-x509-handlers/src/test/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidatorTest.java?rev=1494552&r1=1494551&r2=1494552&view=diff
==============================================================================
--- cxf/trunk/services/xkms/xkms-x509-handlers/src/test/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidatorTest.java
(original)
+++ cxf/trunk/services/xkms/xkms-x509-handlers/src/test/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidatorTest.java
Wed Jun 19 11:21:50 2013
@@ -37,9 +37,9 @@ import org.apache.cxf.xkms.model.xkms.St
 import org.apache.cxf.xkms.model.xkms.UseKeyWithType;
 import org.apache.cxf.xkms.model.xkms.ValidateRequestType;
 import org.apache.cxf.xkms.x509.repo.file.FileCertificateRepo;
+
 import org.junit.Assert;
 import org.junit.Before;
-import org.junit.Ignore;
 import org.junit.Test;
 
 public class TrustedAuthorityValidatorTest extends BasicValidationTest {
@@ -74,7 +74,6 @@ public class TrustedAuthorityValidatorTe
     }
 
     @Test
-    @Ignore
     public void testIsCertChainValid() throws CertificateException {
         TrustedAuthorityValidator validator = new TrustedAuthorityValidator(certificateRepo);
         Assert.assertTrue("Root should be valid",
@@ -84,7 +83,6 @@ public class TrustedAuthorityValidatorTe
     }
 
     @Test
-    @Ignore
     public void testRootCertIsValid() throws JAXBException, CertificateException {
         StatusType result = processRequest("validateRequestOKRoot.xml");
         Assert.assertEquals(KeyBindingEnum.HTTP_WWW_W_3_ORG_2002_03_XKMS_VALID, result.getStatusValue());
@@ -94,7 +92,6 @@ public class TrustedAuthorityValidatorTe
     }
 
     @Test
-    @Ignore
     public void testAliceSignedByRootIsValid() throws JAXBException, CertificateException
{
         StatusType result = processRequest("validateRequestOKAlice.xml");
         Assert.assertEquals(KeyBindingEnum.HTTP_WWW_W_3_ORG_2002_03_XKMS_VALID, result.getStatusValue());
@@ -104,7 +101,6 @@ public class TrustedAuthorityValidatorTe
     }
 
     @Test
-    @Ignore
     public void testDaveSignedByAliceSginedByRootIsValid() throws JAXBException, CertificateException
{
         StatusType result = processRequest("validateRequestOKDave.xml");
         Assert.assertEquals(KeyBindingEnum.HTTP_WWW_W_3_ORG_2002_03_XKMS_VALID, result.getStatusValue());
@@ -114,7 +110,6 @@ public class TrustedAuthorityValidatorTe
     }
 
     @Test
-    @Ignore
     public void testSelfSignedCertOscarIsNotValid() throws JAXBException, CertificateException
{
         StatusType result = processRequest("validateRequestInvalidOscar.xml");
         Assert.assertEquals(result.getStatusValue(), KeyBindingEnum.HTTP_WWW_W_3_ORG_2002_03_XKMS_INVALID);



Mime
View raw message