public static class OkpJWK.OctetECPublicKey extends Object implements ECPublicKey, OkpJWK.OctetECKey
Constructor and Description |
---|
OctetECPublicKey(byte[] x,
SupportedEllipticCurve curve)
Constructs the public key with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm() |
SupportedEllipticCurve |
getCurve()
The curve that the key is for.
|
byte[] |
getEncoded()
Returns the x-coordinate in little-endian form.
|
String |
getFormat() |
ECParameterSpec |
getParams() |
ECPoint |
getW() |
String |
toString() |
public OctetECPublicKey(byte[] x, SupportedEllipticCurve curve)
x
- the public x-coordinate.curve
- the curve parameters.public ECPoint getW()
getW
in interface ECPublicKey
public String getAlgorithm()
getAlgorithm
in interface Key
public SupportedEllipticCurve getCurve()
OkpJWK.OctetECKey
getCurve
in interface OkpJWK.OctetECKey
public byte[] getEncoded()
getEncoded
in interface Key
public ECParameterSpec getParams()
Copyright © 2010-2018, ForgeRock All Rights Reserved.