SSKKeypair reply message
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 9 Apr 2008 09:58:40 +0000 (09:58 +0000)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 9 Apr 2008 09:58:40 +0000 (09:58 +0000)
git-svn-id: http://trooper/svn/projects/jSite/trunk@656 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/util/fcp/message/SSKKeypair.java [new file with mode: 0644]

diff --git a/src/net/pterodactylus/util/fcp/message/SSKKeypair.java b/src/net/pterodactylus/util/fcp/message/SSKKeypair.java
new file mode 100644 (file)
index 0000000..52b0c1b
--- /dev/null
@@ -0,0 +1,54 @@
+/**
+ * © 2008 INA Service GmbH
+ */
+package net.pterodactylus.util.fcp.message;
+
+import net.pterodactylus.util.fcp.FcpMessage;
+
+/**
+ * An “SSKKeypair” message that is sent as a response to a {@link GenerateSSK}
+ * message.
+ * 
+ * @author <a href="mailto:dr@ina-germany.de">David Roden</a>
+ * @version $Id$
+ */
+public class SSKKeypair extends BaseMessage {
+
+       /**
+        * Creates a new “SSKKeypair” message that wraps the received message.
+        * 
+        * @param receivedMessage
+        *            The received message
+        */
+       public SSKKeypair(FcpMessage receivedMessage) {
+               super(receivedMessage);
+       }
+
+       /**
+        * Returns the identifier of the request.
+        * 
+        * @return The identifier of the request
+        */
+       public String getIdentifier() {
+               return getField("Identifier");
+       }
+
+       /**
+        * Returns the URI that must be used to insert data.
+        * 
+        * @return The insert URI
+        */
+       public String getInsertURI() {
+               return getField("InsertURI");
+       }
+
+       /**
+        * Returns the URI that must be used to request data.
+        * 
+        * @return The request URI
+        */
+       public String getRequestURI() {
+               return getField("RequestURI");
+       }
+
+}