implement node addition and removal events
[jSite2.git] / src / net / pterodactylus / util / fcp / GenerateSSK.java
1 /**
2  * © 2008 INA Service GmbH
3  */
4 package net.pterodactylus.util.fcp;
5
6
7 /**
8  * A “GenerateSSK” message. This message tells the node to generate a new SSK
9  * key pair.
10  * 
11  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
12  * @version $Id$
13  */
14 public class GenerateSSK extends FcpMessage {
15
16         /**
17          * Creates a new “GenerateSSK” message.
18          */
19         public GenerateSSK() {
20                 this(FcpUtils.getUniqueIdentifier());
21         }
22
23         /**
24          * Creates a new “GenerateSSK” message with the given client identifier.
25          * 
26          * @param clientIdentifier
27          *            The client identifier
28          */
29         public GenerateSSK(String clientIdentifier) {
30                 super("GenerateSSK");
31                 setField("Identifier", clientIdentifier);
32         }
33
34 }