Most visited

Recently visited

Added in API level 1

ECParameterSpec

public class ECParameterSpec
extends Object implements AlgorithmParameterSpec

java.lang.Object
   ↳ java.security.spec.ECParameterSpec


这个不可变类指定用于椭圆曲线密码术(ECC)的一组域参数。

也可以看看:

Summary

Public constructors

ECParameterSpec(EllipticCurve curve, ECPoint g, BigInteger n, int h)

根据指定的值创建椭圆曲线域参数。

Public methods

int getCofactor()

返回辅助因子。

EllipticCurve getCurve()

返回此参数定义的椭圆曲线。

ECPoint getGenerator()

返回也称为基点的生成器。

BigInteger getOrder()

返回生成器的顺序。

Inherited methods

From class java.lang.Object

Public constructors

ECParameterSpec

Added in API level 1
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.

Public methods

getCofactor

Added in API level 1
int getCofactor ()

返回辅助因子。

Returns
int the cofactor.

getCurve

Added in API level 1
EllipticCurve getCurve ()

返回此参数定义的椭圆曲线。

Returns
EllipticCurve the elliptic curve that this parameter defines.

getGenerator

Added in API level 1
ECPoint getGenerator ()

返回也称为基点的生成器。

Returns
ECPoint the generator which is also known as the base point.

getOrder

Added in API level 1
BigInteger getOrder ()

返回生成器的顺序。

Returns
BigInteger the order of the generator.

Hooray!