@Test public void testUnmarshalConstraint() throws Exception { ConstraintsParameters constraintsParameters = ValidationPolicyFacade.newFacade() .unmarshall(new File("src/test/resources/constraint.xml")); RevocationConstraints revocation = constraintsParameters.getRevocation(); assertNotNull(revocation); TimeConstraint revocationFreshness = revocation.getRevocationFreshness(); assertNotNull(revocationFreshness); assertEquals(Level.FAIL, revocationFreshness.getLevel()); assertEquals(TimeUnit.DAYS, revocationFreshness.getUnit()); assertNotNull(revocationFreshness.getValue()); assertEquals(0, revocationFreshness.getValue().intValue()); }
public static ValidationPolicyFacade newFacade() { return new ValidationPolicyFacade(); }
ValidationPolicyFacade extends AbstractJaxbFacade<ConstraintsParameters> { public static ValidationPolicyFacade newFacade() { return new ValidationPolicyFacade(); } }
ValidationPolicyFacade extends AbstractJaxbFacade<ConstraintsParameters> { public static ValidationPolicyFacade newFacade() { return new ValidationPolicyFacade(); }  }
ValidationPolicyFacade extends AbstractJaxbFacade<ConstraintsParameters> { public static ValidationPolicyFacade newFacade() { return new ValidationPolicyFacade(); }  static ValidationPolicyFacade newFacade(); ValidationPolicy getDefaultValidationPolicy(); ValidationPolicy getTrustedListValidationPolicy(); ValidationPolicy getValidationPolicy(String path); ValidationPolicy getValidationPolicy(InputStream is); ValidationPolicy getValidationPolicy(File file); }
ValidationPolicyFacade extends AbstractJaxbFacade<ConstraintsParameters> { public static ValidationPolicyFacade newFacade() { return new ValidationPolicyFacade(); }  static ValidationPolicyFacade newFacade(); ValidationPolicy getDefaultValidationPolicy(); ValidationPolicy getTrustedListValidationPolicy(); ValidationPolicy getValidationPolicy(String path); ValidationPolicy getValidationPolicy(InputStream is); ValidationPolicy getValidationPolicy(File file);  }