com.ibm.crypto.fips.provider
Class ECPublicKey
- java.lang.Object
-
- com.ibm.security.x509.X509Key
-
- com.ibm.crypto.fips.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- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ECPublicKey(byte[] encoded)ECPublicKey(java.security.spec.ECPoint w, java.security.spec.ECParameterSpec params)
-
Method Summary
Methods Modifier and Type Method and Description protected voidfinalize()This function zeroizes the key so that it isn't in memory when GC is done.java.security.spec.ECParameterSpecgetParams()java.security.spec.ECPointgetW()protected voidparseKeyBits()Parse the key.voidzeroize()This function zeroizes the key so that it isn't in memory
-
-
-
Constructor Detail
-
ECPublicKey
public ECPublicKey(byte[] encoded) throws java.security.InvalidKeyException- Parameters:
encoded-- Throws:
java.security.InvalidKeyException
-
ECPublicKey
public ECPublicKey(java.security.spec.ECPoint w, java.security.spec.ECParameterSpec params) throws java.security.InvalidKeyException, java.security.spec.InvalidParameterSpecException- Parameters:
w-params-- Throws:
java.security.InvalidKeyExceptionjava.security.spec.InvalidParameterSpecException
-
-
Method Detail
-
parseKeyBits
protected void parseKeyBits() throws java.security.InvalidKeyExceptionParse the key. Called by X509Key.- Overrides:
parseKeyBitsin classcom.ibm.security.x509.X509Key- Throws:
java.security.InvalidKeyException
-
getW
public java.security.spec.ECPoint getW()
- Specified by:
getWin interfacejava.security.interfaces.ECPublicKey
-
getParams
public java.security.spec.ECParameterSpec getParams()
- Specified by:
getParamsin interfacejava.security.interfaces.ECKey
-
zeroize
public void zeroize()
This function zeroizes the key so that it isn't in memory
-
finalize
protected void finalize()
This function zeroizes the key so that it isn't in memory when GC is done.- Overrides:
finalizein classjava.lang.Object
-
-