1 7 8 package java.security.spec; 9 10 import java.math.BigInteger ; 11 12 28 29 public class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec { 30 31 private final BigInteger publicExponent; 32 private final BigInteger primeP; 33 private final BigInteger primeQ; 34 private final BigInteger primeExponentP; 35 private final BigInteger primeExponentQ; 36 private final BigInteger crtCoefficient; 37 38 39 40 56 public RSAPrivateCrtKeySpec(BigInteger modulus, 57 BigInteger publicExponent, 58 BigInteger privateExponent, 59 BigInteger primeP, 60 BigInteger primeQ, 61 BigInteger primeExponentP, 62 BigInteger primeExponentQ, 63 BigInteger crtCoefficient) { 64 super(modulus, privateExponent); 65 this.publicExponent = publicExponent; 66 this.primeP = primeP; 67 this.primeQ = primeQ; 68 this.primeExponentP = primeExponentP; 69 this.primeExponentQ = primeExponentQ; 70 this.crtCoefficient = crtCoefficient; 71 } 72 73 78 public BigInteger getPublicExponent() { 79 return this.publicExponent; 80 } 81 82 87 public BigInteger getPrimeP() { 88 return this.primeP; 89 } 90 91 96 public BigInteger getPrimeQ() { 97 return this.primeQ; 98 } 99 100 105 public BigInteger getPrimeExponentP() { 106 return this.primeExponentP; 107 } 108 109 114 public BigInteger getPrimeExponentQ() { 115 return this.primeExponentQ; 116 } 117 118 123 public BigInteger getCrtCoefficient() { 124 return this.crtCoefficient; 125 } 126 } 127 | Popular Tags |