/**
* {@inheritDoc}
*/
- public Project addProject(String projectName) throws IOException {
+ public Project createProject() throws IOException, NoNodeException {
Project project = new Project();
- project.setName(projectName);
String[] keyPair = nodeManager.generateKeyPair();
- if (keyPair == null) {
- return null;
- }
project.setPrivateKey(keyPair[0]);
project.setPublicKey(keyPair[1]);
return project;