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
    • Field Summary

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

        algid, encodedKey, key
    • 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 void finalize()
      This function zeroizes the key so that it isn't in memory when GC is done.
      java.security.spec.ECParameterSpec getParams() 
      java.security.spec.ECPoint getW() 
      protected void parseKeyBits()
      Parse the key.
      void zeroize()
      This function zeroizes the key so that it isn't in memory
      • 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, toString, write, writeBASE64
      • Methods inherited from class java.lang.Object

        clone, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Key

        getAlgorithm, getEncoded, getFormat
    • 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.InvalidKeyException
        java.security.spec.InvalidParameterSpecException
    • Method Detail

      • parseKeyBits

        protected void parseKeyBits()
                             throws java.security.InvalidKeyException
        Parse the key. Called by X509Key.
        Overrides:
        parseKeyBits in class com.ibm.security.x509.X509Key
        Throws:
        java.security.InvalidKeyException
      • getW

        public java.security.spec.ECPoint getW()
        Specified by:
        getW in interface java.security.interfaces.ECPublicKey
      • getParams

        public java.security.spec.ECParameterSpec getParams()
        Specified by:
        getParams in interface java.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:
        finalize in class java.lang.Object
© Portions Copyright 2003, 2014, 2015, 2016 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2014 Oracle and/or its affiliates. All rights reserved.