APIdia Launch Partner
Top Description Fields Methods
java.security.interfaces

public Interface ECPrivateKey

extends PrivateKey, ECKey
Known Direct Implementers
sun.security.ec.ECPrivateKeyImpl
Imports
java.math.BigInteger, java.security.PrivateKey, java.security.spec.ECParameterSpec

The interface to an elliptic curve (EC) private key.
Author
Valerie Peng
Since
1.5
See Also
PrivateKey, ECKey

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.

Method Summary

Modifier and TypeMethod and Description
public default ECParameterSpec
getParams()

Overrides default java.security.AsymmetricKey.getParams.

Implements java.security.interfaces.ECKey.getParams.

Returns the parameters associated with this key.

public BigInteger

Returns:

the private value S.
getS
()

Returns the private value S.

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.

Annotations
@Deprecated
@Serial

Method Detail

getParamsback to summary
public default ECParameterSpec getParams()

Overrides default java.security.AsymmetricKey.getParams.

Implements java.security.interfaces.ECKey.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
getSback to summary
public BigInteger getS()

Returns the private value S.

Returns:BigInteger

the private value S.