public class ECParameterSpec
extends Object implements AlgorithmParameterSpec
| java.lang.Object | |
| ↳ | java.security.spec.ECParameterSpec |
这个不可变类指定用于椭圆曲线密码术(ECC)的一组域参数。
也可以看看:
Public constructors |
|
|---|---|
ECParameterSpec(EllipticCurve curve, ECPoint g, BigInteger n, int h) 根据指定的值创建椭圆曲线域参数。 |
|
Public methods |
|
|---|---|
int |
getCofactor() 返回辅助因子。 |
EllipticCurve |
getCurve() 返回此参数定义的椭圆曲线。 |
ECPoint |
getGenerator() 返回也称为基点的生成器。 |
BigInteger |
getOrder() 返回生成器的顺序。 |
Inherited methods |
|
|---|---|
java.lang.Object
|
|
ECParameterSpec (EllipticCurve curve, ECPoint g, BigInteger n, int h)
根据指定的值创建椭圆曲线域参数。
| Parameters | |
|---|---|
curve |
EllipticCurve: the elliptic curve which this parameter defines. |
g |
ECPoint: the generator which is also known as the base point. |
n |
BigInteger: the order of the generator g. |
h |
int: the cofactor. |
| Throws | |
|---|---|
NullPointerException |
if curve, g, or n is null. |
IllegalArgumentException |
if n or h is not positive. |
EllipticCurve getCurve ()
返回此参数定义的椭圆曲线。
| Returns | |
|---|---|
EllipticCurve |
the elliptic curve that this parameter defines. |
ECPoint getGenerator ()
返回也称为基点的生成器。
| Returns | |
|---|---|
ECPoint |
the generator which is also known as the base point. |
BigInteger getOrder ()
返回生成器的顺序。
| Returns | |
|---|---|
BigInteger |
the order of the generator. |