- java.lang.Object
-
- com.ibm.security.x509.X509Key
-
- com.ibm.crypto.hdwrCCA.provider.ECPublicKey
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.interfaces.ECKey
,java.security.interfaces.ECPublicKey
,java.security.Key
,java.security.PublicKey
public final class ECPublicKey extends com.ibm.security.x509.X509Key implements java.security.interfaces.ECPublicKey, java.security.interfaces.ECKey, java.io.Serializable
A X.509 public key for the Elliptic Curve algorithm.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.spec.ECParameterSpec
getParams()
Return the Elliptic Curve domain parameters.byte[]
getToken()
Return a clone of the external public key token associated with this public key.java.security.spec.ECPoint
getW()
Return the Elliptic Curve public point.protected void
parseKeyBits()
Parse the public key.java.lang.String
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
-
-
-
-
Method Detail
-
parseKeyBits
protected void parseKeyBits() throws java.io.IOException
Parse the public key. This method is called by the parent class X509Key.- Overrides:
parseKeyBits
in classcom.ibm.security.x509.X509Key
- Throws:
java.io.IOException
- if unable to construct Elliptic Curve domain parameters and the public point
-
getW
public java.security.spec.ECPoint getW()
Return the Elliptic Curve public point.- Specified by:
getW
in interfacejava.security.interfaces.ECPublicKey
- Returns:
- the Elliptic Curve public point
-
getParams
public java.security.spec.ECParameterSpec getParams()
Return the Elliptic Curve domain parameters.- Specified by:
getParams
in interfacejava.security.interfaces.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 java.lang.String 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
-
-