44 BigInteger p; 45 BigInteger q; 46 BigInteger g; 47 48 /** 49 * Creates a new DSAParameterSpec with the specified parameter values. 50 * 51 * @param p the prime. 52 * 53 * @param q the sub-prime. 54 * 55 * @param g the base. 56 */ 57 public DSAParameterSpec(BigInteger p, BigInteger q, BigInteger g) { 58 this.p = p; 59 this.q = q; 60 this.g = g; 61 } 62 63 /** 64 * Returns the prime <code>p</code>. 65 * 66 * @return the prime <code>p</code>. 67 */ 68 public BigInteger getP() { 69 return this.p; 70 } 71 72 /** 73 * Returns the sub-prime <code>q</code>. 74 * 75 * @return the sub-prime <code>q</code>. 76 */ 77 public BigInteger getQ() { 78 return this.q; 79 } 80 81 /** 82 * Returns the base <code>g</code>. 83 * 84 * @return the base <code>g</code>. 85 */ 86 public BigInteger getG() { 87 return this.g; 88 } 89 } | 44 BigInteger p; 45 BigInteger q; 46 BigInteger g; 47 48 /** 49 * Creates a new DSAParameterSpec with the specified parameter values. 50 * 51 * @param p the prime. 52 * 53 * @param q the sub-prime. 54 * 55 * @param g the base. 56 */ 57 public DSAParameterSpec(BigInteger p, BigInteger q, BigInteger g) { 58 this.p = p; 59 this.q = q; 60 this.g = g; 61 } 62 63 /** 64 * Returns the prime {@code p}. 65 * 66 * @return the prime {@code p}. 67 */ 68 public BigInteger getP() { 69 return this.p; 70 } 71 72 /** 73 * Returns the sub-prime {@code q}. 74 * 75 * @return the sub-prime {@code q}. 76 */ 77 public BigInteger getQ() { 78 return this.q; 79 } 80 81 /** 82 * Returns the base {@code g}. 83 * 84 * @return the base {@code g}. 85 */ 86 public BigInteger getG() { 87 return this.g; 88 } 89 } |