Most visited

Recently visited

Added in API level 1

ECPrivateKeySpec

public class ECPrivateKeySpec
extends Object implements KeySpec

java.lang.Object
   ↳ java.security.spec.ECPrivateKeySpec


这个不可变类指定一个椭圆曲线私钥及其相关参数。

也可以看看:

Summary

Public constructors

ECPrivateKeySpec(BigInteger s, ECParameterSpec params)

用指定的参数值创建一个新的ECPrivateKeySpec。

Public methods

ECParameterSpec getParams()

返回关联的椭圆曲线域参数。

BigInteger getS()

返回私有值S.

Inherited methods

From class java.lang.Object

Public constructors

ECPrivateKeySpec

Added in API level 1
ECPrivateKeySpec (BigInteger s, 
                ECParameterSpec params)

用指定的参数值创建一个新的ECPrivateKeySpec。

Parameters
s BigInteger: the private value.
params ECParameterSpec: the associated elliptic curve domain parameters.
Throws
NullPointerException if s or params is null.

Public methods

getParams

Added in API level 1
ECParameterSpec getParams ()

返回关联的椭圆曲线域参数。

Returns
ECParameterSpec the EC domain parameters.

getS

Added in API level 1
BigInteger getS ()

返回私有值S.

Returns
BigInteger the private value S.

Hooray!