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