APIdia Launch Partner
Top Description Fields Methods
javax.crypto.interfaces

public Interface DHPrivateKey

extends DHKey, PrivateKey
Known Direct Implementers
com.sun.crypto.provider.DHPrivateKey
Imports
javax.crypto.spec.DHParameterSpec, java.math.BigInteger

The interface to a Diffie-Hellman private key.
Author
Jan Luehe
Since
1.4
See Also
DHKey, DHPublicKey

Field Summary

Modifier and TypeField and Description
public static final long
serialVersionUID

Hides java.security.PrivateKey.serialVersionUID.

Deprecated A serialVersionUID field in an interface is ineffectual. Do not use; no replacement.
The class fingerprint that is set to indicate serialization compatibility since J2SE 1.4.

Method Summary

Modifier and TypeMethod and Description
public default DHParameterSpec
getParams()

Overrides default java.security.AsymmetricKey.getParams.

Implements javax.crypto.interfaces.DHKey.getParams.

Returns the parameters associated with this key.

public BigInteger

Returns:

the private value, x
getX
()

Returns the private value, x.

Field Detail

serialVersionUIDback to summary
public static final long serialVersionUID

Hides java.security.PrivateKey.serialVersionUID.

Deprecated

A serialVersionUID field in an interface is ineffectual. Do not use; no replacement.

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

Annotations
@Deprecated
@Serial

Method Detail

getParamsback to summary
public default DHParameterSpec getParams()

Overrides default java.security.AsymmetricKey.getParams.

Implements javax.crypto.interfaces.DHKey.getParams.

Doc from java.security.AsymmetricKey.getParams.

Returns the parameters associated with this key. The parameters are optional and may be either explicitly specified or implicitly created during key pair generation.

Implementation Specification

The default implementation returns null.

Annotations
@Override
getXback to summary
public BigInteger getX()

Returns the private value, x.

Returns:BigInteger

the private value, x