KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > crypto > spec > DHGenParameterSpec


1 /*
2  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
3  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4  */

5
6 /*
7  * @(#)DHGenParameterSpec.java 1.5 03/12/19
8  */

9   
10 /*
11  * NOTE:
12  * Because of various external restrictions (i.e. US export
13  * regulations, etc.), the actual source code can not be provided
14  * at this time. This file represents the skeleton of the source
15  * file, so that javadocs of the API can be created.
16  */

17
18 package javax.crypto.spec;
19
20 import java.math.BigInteger;
21 import java.security.spec.AlgorithmParameterSpec;
22
23 /**
24  * This class specifies the set of parameters used for generating
25  * Diffie-Hellman (system) parameters for use in Diffie-Hellman key
26  * agreement. This is typically done by a central
27  * authority.
28  *
29  * <p> The central authority, after computing the parameters, must send this
30  * information to the parties looking to agree on a secret key.
31  *
32  * @author Jan Luehe
33  *
34  * @version 1.5, 12/19/03
35  *
36  * @see DHParameterSpec
37  * @since 1.4
38  */

39 public class DHGenParameterSpec implements AlgorithmParameterSpec
40 {
41
42     /**
43      * Constructs a parameter set for the generation of Diffie-Hellman
44      * (system) parameters. The constructed parameter set can be used to
45      * initialize an
46      * {@link java.security.AlgorithmParameterGenerator AlgorithmParameterGenerator}
47      * object for the generation of Diffie-Hellman parameters.
48      *
49      * @param primeSize the size (in bits) of the prime modulus.
50      * @param exponentSize the size (in bits) of the random exponent.
51      */

52     public DHGenParameterSpec(int primeSize, int exponentSize) { }
53
54     /**
55      * Returns the size in bits of the prime modulus.
56      *
57      * @return the size in bits of the prime modulus
58      */

59     public int getPrimeSize() { }
60
61     /**
62      * Returns the size in bits of the random exponent (private value).
63      *
64      * @return the size in bits of the random exponent (private value)
65      */

66     public int getExponentSize() { }
67 }
68
Popular Tags