Package org.bouncycastle.jce.provider
Class JCEECPublicKey
- java.lang.Object
-
- org.bouncycastle.jce.provider.JCEECPublicKey
-
- All Implemented Interfaces:
Serializable
,ECKey
,ECPublicKey
,Key
,PublicKey
,ECKey
,ECPointEncoder
,ECPublicKey
public class JCEECPublicKey extends Object implements ECPublicKey, ECPublicKey, ECPointEncoder
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface java.security.interfaces.ECPublicKey
serialVersionUID
-
Fields inherited from interface java.security.PublicKey
serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description JCEECPublicKey(String algorithm, ECPublicKeySpec spec)
JCEECPublicKey(String algorithm, ECPublicKeyParameters params)
JCEECPublicKey(String algorithm, ECPublicKeyParameters params, ECParameterSpec spec)
JCEECPublicKey(String algorithm, ECPublicKeyParameters params, ECParameterSpec spec)
JCEECPublicKey(String algorithm, JCEECPublicKey key)
JCEECPublicKey(String algorithm, ECPublicKeySpec spec)
JCEECPublicKey(ECPublicKey key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ECPoint
engineGetQ()
boolean
equals(Object o)
String
getAlgorithm()
byte[]
getEncoded()
String
getFormat()
ECParameterSpec
getParameters()
return a parameter specification representing the EC domain parameters for the key.ECParameterSpec
getParams()
ECPoint
getQ()
return the public point QECPoint
getW()
int
hashCode()
void
setPointFormat(String style)
Set the formatting for encoding of points.String
toString()
-
-
-
Constructor Detail
-
JCEECPublicKey
public JCEECPublicKey(String algorithm, JCEECPublicKey key)
-
JCEECPublicKey
public JCEECPublicKey(String algorithm, ECPublicKeySpec spec)
-
JCEECPublicKey
public JCEECPublicKey(String algorithm, ECPublicKeySpec spec)
-
JCEECPublicKey
public JCEECPublicKey(String algorithm, ECPublicKeyParameters params, ECParameterSpec spec)
-
JCEECPublicKey
public JCEECPublicKey(String algorithm, ECPublicKeyParameters params, ECParameterSpec spec)
-
JCEECPublicKey
public JCEECPublicKey(String algorithm, ECPublicKeyParameters params)
-
JCEECPublicKey
public JCEECPublicKey(ECPublicKey key)
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithm
in interfaceKey
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfaceKey
-
getParams
public ECParameterSpec getParams()
-
getParameters
public ECParameterSpec getParameters()
Description copied from interface:ECKey
return a parameter specification representing the EC domain parameters for the key.- Specified by:
getParameters
in interfaceECKey
-
getW
public ECPoint getW()
- Specified by:
getW
in interfaceECPublicKey
-
getQ
public ECPoint getQ()
Description copied from interface:ECPublicKey
return the public point Q- Specified by:
getQ
in interfaceECPublicKey
-
engineGetQ
public ECPoint engineGetQ()
-
setPointFormat
public void setPointFormat(String style)
Description copied from interface:ECPointEncoder
Set the formatting for encoding of points. If the String "UNCOMPRESSED" is passed in point compression will not be used. If the String "COMPRESSED" is passed point compression will be used. The default is "UNCOMPRESSED".- Specified by:
setPointFormat
in interfaceECPointEncoder
- Parameters:
style
- the style to use.
-
-