25
26 package javax.crypto.interfaces;
27
28 import java.math.BigInteger;
29
30 /**
31 * The interface to a Diffie-Hellman private key.
32 *
33 * @author Jan Luehe
34 *
35 * @see DHKey
36 * @see DHPublicKey
37 * @since 1.4
38 */
39 public interface DHPrivateKey extends DHKey, java.security.PrivateKey {
40
41 /**
42 * The class fingerprint that is set to indicate serialization
43 * compatibility since J2SE 1.4.
44 */
45 static final long serialVersionUID = 2211791113380396553L;
46
47 /**
48 * Returns the private value, <code>x</code>.
49 *
50 * @return the private value, <code>x</code>
51 */
52 BigInteger getX();
53 }
|
25
26 package javax.crypto.interfaces;
27
28 import java.math.BigInteger;
29
30 /**
31 * The interface to a Diffie-Hellman private key.
32 *
33 * @author Jan Luehe
34 *
35 * @see DHKey
36 * @see DHPublicKey
37 * @since 1.4
38 */
39 public interface DHPrivateKey extends DHKey, java.security.PrivateKey {
40
41 /**
42 * The class fingerprint that is set to indicate serialization
43 * compatibility since J2SE 1.4.
44 */
45 @SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
46 static final long serialVersionUID = 2211791113380396553L;
47
48 /**
49 * Returns the private value, <code>x</code>.
50 *
51 * @return the private value, <code>x</code>
52 */
53 BigInteger getX();
54 }
|