/** * Set a Key Usage extension for the certificate. The extension will * be marked critical. * * @param bitSettings Boolean array for all nine bit settings in the order * documented in RFC 5280 section 4.2.1.3. * * @throws IOException if an encoding error occurs. */ public void addKeyUsageExt(boolean[] bitSettings) throws IOException { addExtension(new KeyUsageExtension(bitSettings)); }