public final class SM2ParameterSpec extends ECParameterSpec
Modifier and Type | Field and Description |
---|---|
static BigInteger |
COFACTOR
The cofactor.
|
static EllipticCurve |
CURVE
The SM2 elliptic curve.
|
static ECPoint |
GENERATOR
The generator or base point.
|
static String |
OID
The OID of the SM2 elliptic curve.
|
static BigInteger |
ORDER
The order of the generator.
|
Modifier and Type | Method and Description |
---|---|
static SM2ParameterSpec |
instance() |
static boolean |
isCurveSM2(byte[] encodedOid)
Indicates if the encoded OID is SM2 elliptic curve.
|
static boolean |
isCurveSM2(String oid)
Indicates if the OID is SM2 elliptic curve.
|
String |
toString()
Returns a string representation of the object.
|
getCofactor, getCurve, getGenerator, getOrder
public static final EllipticCurve CURVE
public static final ECPoint GENERATOR
public static final BigInteger ORDER
public static final BigInteger COFACTOR
public static final String OID
public static SM2ParameterSpec instance()
public static boolean isCurveSM2(byte[] encodedOid)
encodedOid
- the encoded OID.public static boolean isCurveSM2(String oid)
oid
- the encoded OID.public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2024, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.