1 package org.bouncycastle.crypto.params;
2
3 import java.math.BigInteger;
4 import java.security.SecureRandom;
5
6 import org.bouncycastle.crypto.CipherParameters;
7
8 public class RSAKeyParameters
9 extends AsymmetricKeyParameter
10 {
11 private BigInteger modulus;
12 private BigInteger exponent;
13
14 public RSAKeyParameters(
15 boolean isPrivate,
16 BigInteger modulus,
17 BigInteger exponent)
18 {
19 super(isPrivate);
20
21 this.modulus = modulus;
22 this.exponent = exponent;
23 }
24
25 public BigInteger getModulus()
26 {
27 return modulus;
28 }
29
30 public BigInteger getExponent()
31 {
32 return exponent;
33 }
34 }
35