@Test public void testUnmarshalling() throws Exception { ConstraintsParameters constraintsParameters = ValidationPolicyFacade.newFacade() .unmarshall(new File("src/test/resources/constraint.xml")); Algo algo = constraintsParameters.getSignatureConstraints().getBasicSignatureConstraints().getCryptographic() .getMiniPublicKeySize().getAlgo().get(0); assertNotNull(algo); String algoName = algo.getValue(); assertEquals("DSA", algoName); assertEquals(128, algo.getSize()); String marshall = ValidationPolicyFacade.newFacade().marshall(constraintsParameters); assertNotNull(marshall); }
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);  }