From 1d1b65736d49982a34e8fc2908023e86e4766050 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 9 Apr 2008 09:58:40 +0000 Subject: [PATCH] SSKKeypair reply message git-svn-id: http://trooper/svn/projects/jSite/trunk@656 c3eda9e8-030b-0410-8277-bc7414b0a119 --- .../pterodactylus/util/fcp/message/SSKKeypair.java | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/net/pterodactylus/util/fcp/message/SSKKeypair.java diff --git a/src/net/pterodactylus/util/fcp/message/SSKKeypair.java b/src/net/pterodactylus/util/fcp/message/SSKKeypair.java new file mode 100644 index 0000000..52b0c1b --- /dev/null +++ b/src/net/pterodactylus/util/fcp/message/SSKKeypair.java @@ -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 David Roden + * @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"); + } + +} -- 2.7.4