Added a factory method for unrestricted groups.

This commit is contained in:
akwizgran
2013-03-12 14:42:28 +00:00
parent be3b0bf4d6
commit 211950ce66
3 changed files with 9 additions and 1 deletions

View File

@@ -26,6 +26,10 @@ class GroupFactoryImpl implements GroupFactory {
this.writerFactory = writerFactory;
}
public Group createGroup(String name) throws IOException {
return createGroup(name, null);
}
public Group createGroup(String name, byte[] publicKey) throws IOException {
ByteArrayOutputStream out = new ByteArrayOutputStream();
Writer w = writerFactory.createWriter(out);