Exemplo n.º 1
0
  /**
   * Override the base class method to check that the name is a valid identity certificate name.
   *
   * @param name The identity certificate name which is copied.
   * @return This Data so that you can chain calls to update values.
   */
  public Data setName(Name name) {
    if (!isCorrectName(name)) throw new SecurityException("Wrong Identity Certificate Name!");

    super.setName(name);
    setPublicKeyName();
    return this;
  }