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