Bouncy Castle Cryptography Library 1.81

org.bouncycastle.jcajce.provider.asymmetric.ec
Class BCECPublicKey

java.lang.Object
  extended byorg.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey
All Implemented Interfaces:
ECKey, ECPointEncoder, ECPublicKey, java.security.Key, java.security.PublicKey, java.io.Serializable

public class BCECPublicKey
extends java.lang.Object
implements ECPublicKey, ECPointEncoder

See Also:
Serialized Form

Constructor Summary
BCECPublicKey(java.lang.String algorithm, BCECPublicKey key)
           
BCECPublicKey(java.lang.String algorithm, ECPublicKeyParameters params, ECParameterSpec spec, ProviderConfiguration configuration)
           
BCECPublicKey(java.lang.String algorithm, ECPublicKeyParameters params, ProviderConfiguration configuration)
           
BCECPublicKey(java.lang.String algorithm, ECPublicKeySpec spec, ProviderConfiguration configuration)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 ECParameterSpec getParameters()
          return a parameter specification representing the EC domain parameters for the key.
 ECParameterSpec getParams()
          return a parameter specification representing the EC domain parameters for the key.
 ECPoint getQ()
          return the public point Q
 int hashCode()
           
 void setPointFormat(java.lang.String style)
          Set the formatting for encoding of points.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BCECPublicKey

public BCECPublicKey(java.lang.String algorithm,
                     BCECPublicKey key)

BCECPublicKey

public BCECPublicKey(java.lang.String algorithm,
                     ECPublicKeySpec spec,
                     ProviderConfiguration configuration)

BCECPublicKey

public BCECPublicKey(java.lang.String algorithm,
                     ECPublicKeyParameters params,
                     ECParameterSpec spec,
                     ProviderConfiguration configuration)

BCECPublicKey

public BCECPublicKey(java.lang.String algorithm,
                     ECPublicKeyParameters params,
                     ProviderConfiguration configuration)
Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Specified by:
getAlgorithm in interface java.security.Key

getFormat

public java.lang.String getFormat()
Specified by:
getFormat in interface java.security.Key

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in interface java.security.Key

getParams

public ECParameterSpec getParams()
Description copied from interface: ECKey
return a parameter specification representing the EC domain parameters for the key.

Specified by:
getParams in interface 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 interface ECKey

getQ

public ECPoint getQ()
Description copied from interface: ECPublicKey
return the public point Q

Specified by:
getQ in interface ECPublicKey

toString

public java.lang.String toString()

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 interface ECPointEncoder
Parameters:
style - the style to use.

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

Bouncy Castle Cryptography Library 1.81