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