.. java:import:: java.security GeneralSecurityException ChipAuthenticateHandler ======================= .. java:package:: com.idopte.scmapi :noindex: .. java:type:: public interface ChipAuthenticateHandler Methods ------- extractPublicKey ^^^^^^^^^^^^^^^^ .. java:method:: byte[] extractPublicKey(byte[] fileData) throws SCMException, GeneralSecurityException :outertype: ChipAuthenticateHandler Callback for extracting public key from the file read by the first step of the ``CHIP AUTHENTICATE`` command. This file is supposed to contain the public key for chip authenticate process. :param fileData: the file data. :throws SCMException: :throws GeneralSecurityException: :return: a ``byte array`` containing the authenticated public key as a PKCS#8 format allowing to perform a ``CHIP AUTHENTICATE`` command.