Esempio n. 1
0
  /**
   * Returns a list containing all <tt>crypto</tt> sub-elements.
   *
   * @return a {@link List} containing all our <tt>crypto</tt> sub-elements.
   */
  @Override
  public List<? extends PacketExtension> getChildExtensions() {
    List<PacketExtension> ret = new ArrayList<PacketExtension>();

    ret.addAll(super.getChildExtensions());
    return ret;
  }
Esempio n. 2
0
 /**
  * Adds a new <tt>crypto</tt> element to this encryption element.
  *
  * @param crypto the new <tt>crypto</tt> element to add.
  */
 public void addCrypto(CryptoPacketExtension crypto) {
   if (!cryptoList.contains(crypto)) {
     cryptoList.add(crypto);
   }
 }