From: David ‘Bombe’ Roden Date: Wed, 9 Apr 2008 09:58:40 +0000 (+0000) Subject: SSKKeypair reply message X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1d1b65736d49982a34e8fc2908023e86e4766050;p=jSite2.git SSKKeypair reply message git-svn-id: http://trooper/svn/projects/jSite/trunk@656 c3eda9e8-030b-0410-8277-bc7414b0a119 --- 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"); + } + +}