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. |