8c3fef4af9b282b4727fc5d45139aa9c8319fc01
[jFCPlib.git] / src / net / pterodactylus / fcp / FcpKeyPair.java
1 /*
2  * jSite2 - FcpKeyPair.java -
3  * Copyright © 2008 David Roden
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19
20 package net.pterodactylus.fcp;
21
22 /**
23  * Container for an SSK keypair.
24  * 
25  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
26  */
27 public class FcpKeyPair {
28
29         /** The public key. */
30         private final String publicKey;
31
32         /** The private key. */
33         private final String privateKey;
34
35         /**
36          * Creates a new keypair from the given keys.
37          * 
38          * @param publicKey
39          *            The public key
40          * @param privateKey
41          *            The private key
42          */
43         public FcpKeyPair(String publicKey, String privateKey) {
44                 this.publicKey = publicKey;
45                 this.privateKey = privateKey;
46         }
47
48         /**
49          * Returns the public key of this keypair.
50          * 
51          * @return The public key
52          */
53         public String getPublicKey() {
54                 return publicKey;
55         }
56
57         /**
58          * Returns the private key of this keypair.
59          * 
60          * @return The private key
61          */
62         public String getPrivateKey() {
63                 return privateKey;
64         }
65
66 }