javax.crypto.interfaces

Interface DHPublicKey

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
longserialVersionUID
Compatible with JDK1.4.
Method Summary
BigIntegergetY()
Get the public value y.

Field Detail

serialVersionUID

public long serialVersionUID
Compatible with JDK1.4.

Method Detail

getY

public BigInteger getY()
Get the public value y.

Returns: The public value y.