1 17 18 package org.apache.geronimo.util.crypto.params; 19 20 import java.math.BigInteger ; 21 22 public class RSAPrivateCrtKeyParameters 23 extends RSAKeyParameters 24 { 25 private BigInteger e; 26 private BigInteger p; 27 private BigInteger q; 28 private BigInteger dP; 29 private BigInteger dQ; 30 private BigInteger qInv; 31 32 35 public RSAPrivateCrtKeyParameters( 36 BigInteger modulus, 37 BigInteger publicExponent, 38 BigInteger privateExponent, 39 BigInteger p, 40 BigInteger q, 41 BigInteger dP, 42 BigInteger dQ, 43 BigInteger 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 getPublicExponent() 56 { 57 return e; 58 } 59 60 public BigInteger getP() 61 { 62 return p; 63 } 64 65 public BigInteger getQ() 66 { 67 return q; 68 } 69 70 public BigInteger getDP() 71 { 72 return dP; 73 } 74 75 public BigInteger getDQ() 76 { 77 return dQ; 78 } 79 80 public BigInteger getQInv() 81 { 82 return qInv; 83 } 84 } 85 | Popular Tags |