Class BCDSTU4145PublicKey
- java.lang.Object
-
- org.bouncycastle.jcajce.provider.asymmetric.dstu.BCDSTU4145PublicKey
-
- All Implemented Interfaces:
Serializable
,ECKey
,ECPublicKey
,Key
,PublicKey
,ECKey
,ECPointEncoder
,ECPublicKey
public class BCDSTU4145PublicKey extends Object implements ECPublicKey, ECPublicKey, ECPointEncoder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BCDSTU4145PublicKey(String algorithm, ECPublicKeyParameters params)
BCDSTU4145PublicKey(String algorithm, ECPublicKeyParameters params, ECParameterSpec spec)
BCDSTU4145PublicKey(String algorithm, ECPublicKeyParameters params, ECParameterSpec spec)
BCDSTU4145PublicKey(ECPublicKeySpec spec)
BCDSTU4145PublicKey(BCDSTU4145PublicKey key)
BCDSTU4145PublicKey(ECPublicKeySpec spec, ProviderConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 Qbyte[]
getSbox()
ECPoint
getW()
int
hashCode()
void
setPointFormat(String style)
Set the formatting for encoding of points.String
toString()
-
-
-
Constructor Detail
-
BCDSTU4145PublicKey
public BCDSTU4145PublicKey(BCDSTU4145PublicKey key)
-
BCDSTU4145PublicKey
public BCDSTU4145PublicKey(ECPublicKeySpec spec)
-
BCDSTU4145PublicKey
public BCDSTU4145PublicKey(ECPublicKeySpec spec, ProviderConfiguration configuration)
-
BCDSTU4145PublicKey
public BCDSTU4145PublicKey(String algorithm, ECPublicKeyParameters params, ECParameterSpec spec)
-
BCDSTU4145PublicKey
public BCDSTU4145PublicKey(String algorithm, ECPublicKeyParameters params, ECParameterSpec spec)
-
BCDSTU4145PublicKey
public BCDSTU4145PublicKey(String algorithm, ECPublicKeyParameters params)
-
-
Method Detail
-
getSbox
public byte[] getSbox()
-
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
-
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.
-
-