implement node addition and removal events
[jSite2.git] / src / net / pterodactylus / util / fcp / SSKKeypair.java
1 /**
2  * © 2008 INA Service GmbH
3  */
4 package net.pterodactylus.util.fcp;
5
6
7 /**
8  * An “SSKKeypair” message that is sent as a response to a {@link GenerateSSK}
9  * message.
10  * 
11  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
12  * @version $Id$
13  */
14 public class SSKKeypair extends BaseMessage {
15
16         /**
17          * Creates a new “SSKKeypair” message that wraps the received message.
18          * 
19          * @param receivedMessage
20          *            The received message
21          */
22         SSKKeypair(FcpMessage receivedMessage) {
23                 super(receivedMessage);
24         }
25
26         /**
27          * Returns the identifier of the request.
28          * 
29          * @return The identifier of the request
30          */
31         public String getIdentifier() {
32                 return getField("Identifier");
33         }
34
35         /**
36          * Returns the URI that must be used to insert data.
37          * 
38          * @return The insert URI
39          */
40         public String getInsertURI() {
41                 return getField("InsertURI");
42         }
43
44         /**
45          * Returns the URI that must be used to request data.
46          * 
47          * @return The request URI
48          */
49         public String getRequestURI() {
50                 return getField("RequestURI");
51         }
52
53 }