DHPublicKey

public interface DHPublicKey
implements DHKey, PublicKey

javax.crypto.interfaces.DHPublicKey


The interface to a Diffie-Hellman public key.

See also:

Summary

Constants

long serialVersionUID

The class fingerprint that is set to indicate serialization compatibility since J2SE 1.4.

Inherited constants

long serialVersionUID

This constant was deprecated in API level 34. A serialVersionUID field in an interface is ineffectual. Do not use; no replacement.

long serialVersionUID

This constant was deprecated in API level 34. A serialVersionUID field in an interface is ineffectual. Do not use; no replacement.

Public methods

abstract BigInteger getY()

Returns the public value, y.

Inherited methods

abstract DHParameterSpec getParams()

Returns the key parameters.

abstract String getAlgorithm()

Returns the standard algorithm name for this key.

abstract byte[] getEncoded()

Returns the key in its primary encoding format, or null if this key does not support encoding.

abstract String getFormat()

Returns the name of the primary encoding format of this key, or null if this key does not support encoding.

Constants

serialVersionUID

Added in API level 1
public static final long serialVersionUID

The class fingerprint that is set to indicate serialization compatibility since J2SE 1.4.

Constant Value: -6628103563352519193 (0xa4043eed23df4de7)

Public methods

getY

Added in API level 1
public abstract BigInteger getY ()

Returns the public value, y.

Returns
BigInteger the public value, y