Package org.bouncycastle.jce.provider
Class JCEECPublicKey
- java.lang.Object
-
- org.bouncycastle.jce.provider.JCEECPublicKey
-
- All Implemented Interfaces:
java.io.Serializable,java.security.interfaces.ECKey,java.security.interfaces.ECPublicKey,java.security.Key,java.security.PublicKey,ECKey,ECPointEncoder,ECPublicKey
public class JCEECPublicKey extends java.lang.Object implements java.security.interfaces.ECPublicKey, ECPublicKey, ECPointEncoder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JCEECPublicKey(java.lang.String algorithm, java.security.spec.ECPublicKeySpec spec)JCEECPublicKey(java.lang.String algorithm, ECPublicKeyParameters params)JCEECPublicKey(java.lang.String algorithm, ECPublicKeyParameters params, java.security.spec.ECParameterSpec spec)JCEECPublicKey(java.lang.String algorithm, ECPublicKeyParameters params, ECParameterSpec spec)JCEECPublicKey(java.lang.String algorithm, JCEECPublicKey key)JCEECPublicKey(java.lang.String algorithm, ECPublicKeySpec spec)JCEECPublicKey(java.security.interfaces.ECPublicKey key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ECPointengineGetQ()booleanequals(java.lang.Object o)java.lang.StringgetAlgorithm()byte[]getEncoded()java.lang.StringgetFormat()ECParameterSpecgetParameters()return a parameter specification representing the EC domain parameters for the key.java.security.spec.ECParameterSpecgetParams()ECPointgetQ()return the public point Qjava.security.spec.ECPointgetW()inthashCode()voidsetPointFormat(java.lang.String style)Set the formatting for encoding of points.java.lang.StringtoString()
-
-
-
Constructor Detail
-
JCEECPublicKey
public JCEECPublicKey(java.lang.String algorithm, JCEECPublicKey key)
-
JCEECPublicKey
public JCEECPublicKey(java.lang.String algorithm, java.security.spec.ECPublicKeySpec spec)
-
JCEECPublicKey
public JCEECPublicKey(java.lang.String algorithm, ECPublicKeySpec spec)
-
JCEECPublicKey
public JCEECPublicKey(java.lang.String algorithm, ECPublicKeyParameters params, java.security.spec.ECParameterSpec spec)
-
JCEECPublicKey
public JCEECPublicKey(java.lang.String algorithm, ECPublicKeyParameters params, ECParameterSpec spec)
-
JCEECPublicKey
public JCEECPublicKey(java.lang.String algorithm, ECPublicKeyParameters params)
-
JCEECPublicKey
public JCEECPublicKey(java.security.interfaces.ECPublicKey key)
-
-
Method Detail
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithmin interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfacejava.security.Key
-
getParams
public java.security.spec.ECParameterSpec getParams()
- Specified by:
getParamsin interfacejava.security.interfaces.ECKey
-
getParameters
public ECParameterSpec getParameters()
Description copied from interface:ECKeyreturn a parameter specification representing the EC domain parameters for the key.- Specified by:
getParametersin interfaceECKey
-
getW
public java.security.spec.ECPoint getW()
- Specified by:
getWin interfacejava.security.interfaces.ECPublicKey
-
getQ
public ECPoint getQ()
Description copied from interface:ECPublicKeyreturn the public point Q- Specified by:
getQin interfaceECPublicKey
-
engineGetQ
public ECPoint engineGetQ()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setPointFormat
public void setPointFormat(java.lang.String style)
Description copied from interface:ECPointEncoderSet 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:
setPointFormatin interfaceECPointEncoder- Parameters:
style- the style to use.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-