aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/core/src/main/jdk1.1/java/security/spec/RSAKeyGenParameterSpec.java
blob: 756c6c0fda77c1760350f812e3a37c1a9e067888 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package java.security.spec;

import java.math.BigInteger;

/**
 * specifies parameters to be used for the generation of
 * a RSA key pair.
 */
public class RSAKeyGenParameterSpec
    implements AlgorithmParameterSpec
{
    static BigInteger   F0 = BigInteger.valueOf(3);
    static BigInteger   F4 = BigInteger.valueOf(65537);

    private int         keysize;
    private BigInteger  publicExponent;

    public RSAKeyGenParameterSpec(
        int         keysize,
        BigInteger  publicExponent)
    {
        this.keysize = keysize;
        this.publicExponent = publicExponent;
    }

    public int getKeysize()
    {
        return keysize;
    }

    public BigInteger getPublicExponent()
    {
        return publicExponent;
    }
}