Java 类sun.security.x509.KeyUsageExtension 实例源码

项目:openjdk-jdk10    文件:CertificateBuilder.java   
/**
 * 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));
}
项目:openjdk9    文件:CertificateBuilder.java   
/**
 * 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));
}