KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > util > crypto > params > RSAPrivateCrtKeyParameters


1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 package org.apache.geronimo.util.crypto.params;
19
20 import java.math.BigInteger JavaDoc;
21
22 public class RSAPrivateCrtKeyParameters
23     extends RSAKeyParameters
24 {
25     private BigInteger JavaDoc e;
26     private BigInteger JavaDoc p;
27     private BigInteger JavaDoc q;
28     private BigInteger JavaDoc dP;
29     private BigInteger JavaDoc dQ;
30     private BigInteger JavaDoc qInv;
31
32     /**
33      *
34      */

35     public RSAPrivateCrtKeyParameters(
36         BigInteger JavaDoc modulus,
37         BigInteger JavaDoc publicExponent,
38         BigInteger JavaDoc privateExponent,
39         BigInteger JavaDoc p,
40         BigInteger JavaDoc q,
41         BigInteger JavaDoc dP,
42         BigInteger JavaDoc dQ,
43         BigInteger JavaDoc qInv)
44     {
45         super(true, modulus, privateExponent);
46
47         this.e = publicExponent;
48         this.p = p;
49         this.q = q;
50         this.dP = dP;
51         this.dQ = dQ;
52         this.qInv = qInv;
53     }
54
55     public BigInteger JavaDoc getPublicExponent()
56     {
57         return e;
58     }
59
60     public BigInteger JavaDoc getP()
61     {
62         return p;
63     }
64
65     public BigInteger JavaDoc getQ()
66     {
67         return q;
68     }
69
70     public BigInteger JavaDoc getDP()
71     {
72         return dP;
73     }
74
75     public BigInteger JavaDoc getDQ()
76     {
77         return dQ;
78     }
79
80     public BigInteger JavaDoc getQInv()
81     {
82         return qInv;
83     }
84 }
85
Popular Tags