Class BCECGOST3410_2012PublicKey
- java.lang.Object
-
- org.bouncycastle.jcajce.provider.asymmetric.ecgost12.BCECGOST3410_2012PublicKey
-
- 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 BCECGOST3410_2012PublicKey extends java.lang.Object implements java.security.interfaces.ECPublicKey, ECPublicKey, ECPointEncoder
Represent two kind of GOST34.10 2012 PublicKeys: with 256 and 512 size- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BCECGOST3410_2012PublicKey(java.lang.String algorithm, ECPublicKeyParameters params)
BCECGOST3410_2012PublicKey(java.lang.String algorithm, ECPublicKeyParameters params, java.security.spec.ECParameterSpec spec)
BCECGOST3410_2012PublicKey(java.lang.String algorithm, ECPublicKeyParameters params, ECParameterSpec spec)
BCECGOST3410_2012PublicKey(java.security.interfaces.ECPublicKey key)
BCECGOST3410_2012PublicKey(java.security.spec.ECPublicKeySpec spec)
BCECGOST3410_2012PublicKey(BCECGOST3410_2012PublicKey key)
BCECGOST3410_2012PublicKey(ECPublicKeySpec spec, ProviderConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getAlgorithm()
byte[]
getEncoded()
java.lang.String
getFormat()
GOST3410PublicKeyAlgParameters
getGostParams()
ECParameterSpec
getParameters()
return a parameter specification representing the EC domain parameters for the key.java.security.spec.ECParameterSpec
getParams()
ECPoint
getQ()
return the public point Qjava.security.spec.ECPoint
getW()
int
hashCode()
void
setPointFormat(java.lang.String style)
Set the formatting for encoding of points.java.lang.String
toString()
-
-
-
Constructor Detail
-
BCECGOST3410_2012PublicKey
public BCECGOST3410_2012PublicKey(BCECGOST3410_2012PublicKey key)
-
BCECGOST3410_2012PublicKey
public BCECGOST3410_2012PublicKey(java.security.spec.ECPublicKeySpec spec)
-
BCECGOST3410_2012PublicKey
public BCECGOST3410_2012PublicKey(ECPublicKeySpec spec, ProviderConfiguration configuration)
-
BCECGOST3410_2012PublicKey
public BCECGOST3410_2012PublicKey(java.lang.String algorithm, ECPublicKeyParameters params, java.security.spec.ECParameterSpec spec)
-
BCECGOST3410_2012PublicKey
public BCECGOST3410_2012PublicKey(java.lang.String algorithm, ECPublicKeyParameters params, ECParameterSpec spec)
-
BCECGOST3410_2012PublicKey
public BCECGOST3410_2012PublicKey(java.lang.String algorithm, ECPublicKeyParameters params)
-
BCECGOST3410_2012PublicKey
public BCECGOST3410_2012PublicKey(java.security.interfaces.ECPublicKey key)
-
-
Method Detail
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithm
in interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormat
in interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfacejava.security.Key
-
getParams
public java.security.spec.ECParameterSpec getParams()
- Specified by:
getParams
in interfacejava.security.interfaces.ECKey
-
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 java.security.spec.ECPoint getW()
- Specified by:
getW
in interfacejava.security.interfaces.ECPublicKey
-
getQ
public ECPoint getQ()
Description copied from interface:ECPublicKey
return the public point Q- Specified by:
getQ
in interfaceECPublicKey
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setPointFormat
public void setPointFormat(java.lang.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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getGostParams
public GOST3410PublicKeyAlgParameters getGostParams()
-
-