44ccb5d79e8feb1a603f0fc91ddb29685ee7b367
[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  * @version $Id$
27  */
28 public class FcpKeyPair {
29
30         /** The public key. */
31         private final String publicKey;
32
33         /** The private key. */
34         private final String privateKey;
35
36         /**
37          * Creates a new keypair from the given keys.
38          * 
39          * @param publicKey
40          *            The public key
41          * @param privateKey
42          *            The private key
43          */
44         public FcpKeyPair(String publicKey, String privateKey) {
45                 this.publicKey = publicKey;
46                 this.privateKey = privateKey;
47         }
48
49         /**
50          * Returns the public key of this keypair.
51          * 
52          * @return The public key
53          */
54         public String getPublicKey() {
55                 return publicKey;
56         }
57
58         /**
59          * Returns the private key of this keypair.
60          * 
61          * @return The private key
62          */
63         public String getPrivateKey() {
64                 return privateKey;
65         }
66
67 }