KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)DHPrivateKeySpec.java 1.6 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

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

15
16 package javax.crypto.spec;
17
18 import java.math.BigInteger;
19
20 /**
21  * This class specifies a Diffie-Hellman private key with its associated
22  * parameters.
23  *
24  * <p>Note that this class does not perform any validation on specified
25  * parameters. Thus, the specified values are returned directly even
26  * if they are null.
27  *
28  * @author Jan Luehe
29  *
30  * @version 1.14, 10/29/03
31  *
32  * @see DHPublicKeySpec
33  * @since 1.4
34  */

35 public class DHPrivateKeySpec implements java.security.spec.KeySpec
36 {
37
38     /**
39      * Constructor that takes a private value <code>x</code>, a prime
40      * modulus <code>p</code>, and a base generator <code>g</code>.
41      * @param x private value x
42      * @param p prime modulus p
43      * @param g base generator g
44      */

45     public DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g) { }
46
47     /**
48      * Returns the private value <code>x</code>.
49      *
50      * @return the private value <code>x</code>
51      */

52     public BigInteger getX() { }
53
54     /**
55      * Returns the prime modulus <code>p</code>.
56      *
57      * @return the prime modulus <code>p</code>
58      */

59     public BigInteger getP() { }
60
61     /**
62      * Returns the base generator <code>g</code>.
63      *
64      * @return the base generator <code>g</code>
65      */

66     public BigInteger getG() { }
67 }
68
Popular Tags