Example #1
0
  /**
   * Creates a <code>BasicConstraints</code> object from given extension.
   *
   * @param ext the extension.
   * @return the <code>BasicConstraints</code> object.
   * @throws IOException if something fails.
   */
  public static BasicConstraints getBasicConstraints(X509Extension ext) throws IOException {

    ASN1Object object = X509Extension.convertValueToObject(ext);
    return BasicConstraints.getInstance(object);
  }