java.lang.Objectjava.security.spec.ECParameterSpec
public class ECParameterSpec
此不可变类指定用于椭圆曲线加密方法 (ECC) 的域参数集。
AlgorithmParameterSpec
| 构造方法摘要 | |
|---|---|
ECParameterSpec(EllipticCurve curve, ECPoint g, BigInteger n, int h) 创建基于指定值的椭圆曲线域参数。 |
|
| 方法摘要 | |
|---|---|
int |
getCofactor() 返回余因子。 |
EllipticCurve |
getCurve() 返回此参数定义的椭圆曲线。 |
ECPoint |
getGenerator() 返回也称为基点的生成器。 |
BigInteger |
getOrder() 返回生成器的顺序。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ECParameterSpec(EllipticCurve curve, ECPoint g, BigInteger n, int h)
curve - 此参数定义的椭圆曲线。
g - 生成器,也称为基点。
n - 生成器
g 的顺序。
h - 余因子。
NullPointerException - 如果
curve、
g 或
n 为 null。
IllegalArgumentException - 如果
n 或
h 不是正数。
| 方法详细信息 |
|---|
public EllipticCurve getCurve()
public ECPoint getGenerator()
public BigInteger getOrder()
public int getCofactor()