Class NamedECParameterSpec
java.lang.Object
java.security.spec.ECParameterSpec
de.christofreichardt.json.webkey.NamedECParameterSpec
- All Implemented Interfaces:
AlgorithmParameterSpec
Helper class needed to propagate the identifiers of this curve through serialization and deserialization.
- Author:
- Christof Reichardt
-
Constructor Summary
ConstructorsConstructorDescriptionNamedECParameterSpec(String name, EllipticCurve curve, ECPoint g, BigInteger n, int h) Creates elliptic curve domain parameters based on the specified values. -
Method Summary
Methods inherited from class ECParameterSpec
getCofactor, getCurve, getGenerator, getOrder
-
Constructor Details
-
NamedECParameterSpec
Creates elliptic curve domain parameters based on the specified values.- Parameters:
name- contains some identifiers for the curve, e.g. "secp256r1 [NIST P-256,X9.62 prime256v1] (1.2.840.10045.3.1.7)"curve- the elliptic curve which this parameter defines.g- the generator which is also known as the base point.n- the order of the generatorg.h- the cofactor.- Throws:
NullPointerException- ifcurve,g, ornis null.IllegalArgumentException- ifnorhis not positive.
-
-
Method Details
-
toString
-