public class ECPrivateKeySpec
extends Object implements KeySpec
| java.lang.Object | |
| java.security.spec.ECPrivateKeySpec | |
这个不可变类指定一个椭圆曲线私钥及其相关参数。
也可以看看:
Public constructors |
|
|---|---|
ECPrivateKeySpec(BigInteger s, ECParameterSpec params) 用指定的参数值创建一个新的ECPrivateKeySpec。 |
|
公共方法(Public methods) |
|
|---|---|
ECParameterSpec |
getParams() 返回关联的椭圆曲线域参数。 |
BigInteger |
getS() 返回私有值S. |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
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. |
ECParameterSpec getParams ()
返回关联的椭圆曲线域参数。
| 返回(Returns) | |
|---|---|
ECParameterSpec |
the EC domain parameters. |