1 | /******************************************************************************
|
---|
2 | *
|
---|
3 | * Copyright (c) 1998,99 by Mindbright Technology AB, Stockholm, Sweden.
|
---|
4 | * www.mindbright.se, [email protected]
|
---|
5 | *
|
---|
6 | * This program is free software; you can redistribute it and/or modify
|
---|
7 | * it under the terms of the GNU General Public License as published by
|
---|
8 | * the Free Software Foundation; either version 2 of the License, or
|
---|
9 | * (at your option) any later version.
|
---|
10 | *
|
---|
11 | * This program is distributed in the hope that it will be useful,
|
---|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
14 | * GNU General Public License for more details.
|
---|
15 | *
|
---|
16 | *****************************************************************************
|
---|
17 | * $Author: mats $
|
---|
18 | * $Date: 1999/01/10 15:15:35 $
|
---|
19 | * $Name: rel1-2-1 $
|
---|
20 | *****************************************************************************/
|
---|
21 | package mindbright.security;
|
---|
22 |
|
---|
23 | import java.math.BigInteger;
|
---|
24 |
|
---|
25 | public class RSAPrivateKey extends RSAKey implements PrivateKey {
|
---|
26 |
|
---|
27 | private BigInteger d;
|
---|
28 | private BigInteger u;
|
---|
29 | private BigInteger p;
|
---|
30 | private BigInteger q;
|
---|
31 |
|
---|
32 | public RSAPrivateKey(BigInteger e, BigInteger n,
|
---|
33 | BigInteger d, BigInteger u,
|
---|
34 | BigInteger p, BigInteger q) {
|
---|
35 | super(e, n);
|
---|
36 | this.d = d;
|
---|
37 | this.u = u;
|
---|
38 | this.p = p;
|
---|
39 | this.q = q;
|
---|
40 | }
|
---|
41 |
|
---|
42 | public BigInteger getD() {
|
---|
43 | return d;
|
---|
44 | }
|
---|
45 |
|
---|
46 | public BigInteger getU() {
|
---|
47 | return u;
|
---|
48 | }
|
---|
49 |
|
---|
50 | public BigInteger getP() {
|
---|
51 | return p;
|
---|
52 | }
|
---|
53 |
|
---|
54 | public BigInteger getQ() {
|
---|
55 | return q;
|
---|
56 | }
|
---|
57 |
|
---|
58 | }
|
---|