1 7 8 package java.security.spec; 9 10 import java.math.BigInteger ; 11 12 35 36 public class RSAOtherPrimeInfo { 37 38 private BigInteger prime; 39 private BigInteger primeExponent; 40 private BigInteger crtCoefficient; 41 42 43 57 public RSAOtherPrimeInfo(BigInteger prime, 58 BigInteger primeExponent, 59 BigInteger crtCoefficient) { 60 if (prime == null) { 61 throw new NullPointerException ("the prime parameter must be " + 62 "non-null"); 63 } 64 if (primeExponent == null) { 65 throw new NullPointerException ("the primeExponent parameter " + 66 "must be non-null"); 67 } 68 if (crtCoefficient == null) { 69 throw new NullPointerException ("the crtCoefficient parameter " + 70 "must be non-null"); 71 } 72 this.prime = prime; 73 this.primeExponent = primeExponent; 74 this.crtCoefficient = crtCoefficient; 75 } 76 77 82 public final BigInteger getPrime() { 83 return this.prime; 84 } 85 86 91 public final BigInteger getExponent() { 92 return this.primeExponent; 93 } 94 95 100 public final BigInteger getCrtCoefficient() { 101 return this.crtCoefficient; 102 } 103 } 104 | Popular Tags |