X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fde%2Ftodesbaum%2Fjsite%2Fapplication%2FFreenet7Interface.java;h=98cfa04ecfc0f7d1046fff32bcbddbe08e812b33;hb=a6bda7a82aa1b2cfd0313fb28d3dcca68ca516c5;hp=d670fd28ffab3200327faa8494d9e456a8c8d47d;hpb=0cffcea7c8788a104fb41c9ff55b53fd2aa99cb4;p=jSite.git diff --git a/src/de/todesbaum/jsite/application/Freenet7Interface.java b/src/de/todesbaum/jsite/application/Freenet7Interface.java index d670fd2..98cfa04 100644 --- a/src/de/todesbaum/jsite/application/Freenet7Interface.java +++ b/src/de/todesbaum/jsite/application/Freenet7Interface.java @@ -1,6 +1,5 @@ /* - * jSite - - * Copyright (C) 2006 David Roden + * jSite - Freenet7Interface.java - Copyright © 2006–2011 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -47,8 +46,8 @@ public class Freenet7Interface { private Connection connection; /** - * Sets the hostname of the node. The default port for FCP2 connections ( - * {@link Node#DEFAULT_PORT}) is used. + * Sets the hostname of the node. The default port for FCP2 connections ({@link Node#DEFAULT_PORT}) + * is used. * * @param hostname * The hostname of the node @@ -142,7 +141,7 @@ public class Freenet7Interface { */ public String[] generateKeyPair() throws IOException { if (!isNodePresent()) { - return null; + throw new IOException("Node is offline."); } GenerateSSK generateSSK = new GenerateSSK(); Client client = new Client(connection, generateSSK);