public static class OkpJWK.OctetECPrivateKey extends Object implements ECPrivateKey, OkpJWK.OctetECKey
Constructor and Description |
---|
OctetECPrivateKey(byte[] d,
SupportedEllipticCurve curve)
Constructs the private key with the given values.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
String |
getAlgorithm() |
SupportedEllipticCurve |
getCurve()
The curve that the key is for.
|
byte[] |
getEncoded()
Returns the private d-value in little-endian form.
|
String |
getFormat() |
ECParameterSpec |
getParams() |
BigInteger |
getS() |
boolean |
isDestroyed() |
String |
toString() |
public OctetECPrivateKey(byte[] d, SupportedEllipticCurve curve)
d
- the private "d" value.curve
- the curve parameters.public BigInteger getS()
getS
in interface ECPrivateKey
public String getAlgorithm()
getAlgorithm
in interface Key
public byte[] getEncoded()
getEncoded
in interface Key
public ECParameterSpec getParams()
public SupportedEllipticCurve getCurve()
OkpJWK.OctetECKey
getCurve
in interface OkpJWK.OctetECKey
public void destroy()
destroy
in interface Destroyable
public boolean isDestroyed()
isDestroyed
in interface Destroyable
Copyright © 2010-2018, ForgeRock All Rights Reserved.