bufferedReader.close();
return writer.toString();
}
protected Policy loadPolicy(String policy) throws Exception {
PolicyBuilder policyBuilder = new PolicyBuilder();
AssertionBuilderFactory assertionBuilderFactory = policyBuilder.getAssertionBuilderFactory();
assertionBuilderFactory.registerBuilder(new AlgorithmSuiteBuilder());
assertionBuilderFactory.registerBuilder(new AsymmetricBindingBuilder());
assertionBuilderFactory.registerBuilder(new ContentEncryptedElementsBuilder());
assertionBuilderFactory.registerBuilder(new EncryptedElementsBuilder());
assertionBuilderFactory.registerBuilder(new EncryptedPartsBuilder());