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 TypeMethodDescriptionReturn the Elliptic Curve domain parameters.byte[]
getToken()
Return a clone of the external public key token associated with this public key.getW()
Return the Elliptic Curve public point.protected void
Parse the public key.toString()
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
Parse the public key. This method is called by the parent class X509Key.- Overrides:
parseKeyBits
in classcom.ibm.security.x509.X509Key
- Throws:
IOException
- if unable to construct Elliptic Curve domain parameters and the public point
-
getW
Return the Elliptic Curve public point.- Specified by:
getW
in interfaceECPublicKey
- Returns:
- the Elliptic Curve public point
-
getParams
Return the 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
Returns the public key in human readable format.- Overrides:
toString
in classcom.ibm.security.x509.X509Key
- Returns:
- a string that represents the public key
-