public class ECKeyParam extends java.lang.Object implements CipherParameters, java.security.spec.KeySpec
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
defNamedCurve
The default named curve if none specified, the default curve is SEC
secp256r1, which is also referred to as P-256 by NIST.
|
private ECDomainParameters |
ECDomainParam |
private ECParameterSpec |
ECParamSpec |
Constructor and Description |
---|
ECKeyParam()
The default constructor, creates an instance of ECKeyParam object using the
default named curve which at the present moment is secp256r1.
|
ECKeyParam(java.lang.String namedCurve)
Creates an instance of the ECKeyParam object with using the named curve
specified for the elliptic curve.
|
Modifier and Type | Method and Description |
---|---|
ECCurve |
getCurve()
Wrapper for getCurve()
|
ECDomainParameters |
getECDomainParam() |
ECParameterSpec |
getECParamSpec() |
ECPoint |
getG()
Wrapper for getG()
|
java.math.BigInteger |
getH()
Wrapper for getH()
|
java.math.BigInteger |
getN()
Wrapper for getN()
|
byte[] |
getSeed()
Wrapper for getSeed()
|
private static final java.lang.String defNamedCurve
http://www.secg.org/collateral/sec2_final.pdf
,
http://www.bouncycastle.org/wiki/display/JA1/Supported+Curves+%28ECDSA+and+ECGOST%29
,
Constant Field Valuesprivate ECParameterSpec ECParamSpec
private ECDomainParameters ECDomainParam
public ECKeyParam()
public ECKeyParam(java.lang.String namedCurve) throws java.security.InvalidParameterException
namedCurve
- The named elliptic curve to usejava.security.InvalidParameterException
- if the named curve provided is not supportedhttp://www.secg.org/collateral/sec2_final.pdf
,
http://www.bouncycastle.org/wiki/display/JA1/Supported+Curves+%28ECDSA+and+ECGOST%29
public ECParameterSpec getECParamSpec()
public ECDomainParameters getECDomainParam()
public ECCurve getCurve()
public ECPoint getG()
public java.math.BigInteger getH()
public java.math.BigInteger getN()
public byte[] getSeed()