javax.crypto.interfaces
Interface DHPublicKey

All Superinterfaces:
DHKey, Key, PublicKey, Serializable

public interface DHPublicKey
extends DHKey, PublicKey

This interface marks a public key in the Diffie-Hellman key-exchange algorithm.

Implementations of Diffie-Hellman public keys should implement this interface. Applications that know that a particular key is a Diffie-Hellman public key it can be safely cast to this interface.

Since:
1.4
See Also:
DHKey, DHPrivateKey

Field Summary
static long serialVersionUID
          Compatible with JDK1.4.
 
Method Summary
 BigInteger getY()
          Get the public value y.
 
Methods inherited from interface javax.crypto.interfaces.DHKey
getParams
 
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
 

Field Detail

serialVersionUID

static final long serialVersionUID
Compatible with JDK1.4.

See Also:
Constant Field Values
Method Detail

getY

BigInteger getY()
Get the public value y.

Returns:
The public value y.