Class ECPublicKey

java.lang.Object
com.ibm.security.x509.X509Key
com.ibm.crypto.hdwrCCA.provider.ECPublicKey
All Implemented Interfaces:
Serializable, ECKey, ECPublicKey, Key, PublicKey

public final class ECPublicKey extends com.ibm.security.x509.X509Key implements ECPublicKey, ECKey, Serializable
A X.509 public key for the Elliptic Curve algorithm.
See Also:
  • Field Summary

    Fields inherited from class com.ibm.security.x509.X509Key

    algid, encodedKey, key
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the Elliptic Curve domain parameters.
    byte[]
    Return a clone of the external public key token associated with this public key.
    Return the Elliptic Curve public point.
    protected void
    Parse the public key.
    Returns the public key in human readable format.

    Methods inherited from class com.ibm.security.x509.X509Key

    decode, decode, encode, encode, equals, getAlgorithm, getAlgorithmId, getEncoded, getFormat, getKey, hashCode, parse, parse, read, readBASE64, setKey, write, writeBASE64

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.security.Key

    getAlgorithm, getEncoded, getFormat
  • Method Details

    • parseKeyBits

      protected void parseKeyBits() throws IOException
      Parse the public key. This method is called by the parent class X509Key.
      Overrides:
      parseKeyBits in class com.ibm.security.x509.X509Key
      Throws:
      IOException - if unable to construct Elliptic Curve domain parameters and the public point
    • getW

      public ECPoint getW()
      Return the Elliptic Curve public point.
      Specified by:
      getW in interface ECPublicKey
      Returns:
      the Elliptic Curve public point
    • getParams

      public ECParameterSpec getParams()
      Return the Elliptic Curve domain parameters.
      Specified by:
      getParams in interface ECKey
      Returns:
      Elliptic Curve domain parameters
    • getToken

      public byte[] getToken()
      Return a clone of the external public key token associated with this public key.
      Returns:
      A clone of the external PKA public key token
    • toString

      public String toString()
      Returns the public key in human readable format.
      Overrides:
      toString in class com.ibm.security.x509.X509Key
      Returns:
      a string that represents the public key