EncryptionMethod em = this.getEncryptionMethod();
Canonicalizer c14n =
Canonicalizer.getInstance(Canonicalizer.ALGO_ID_C14N_WITH_COMMENTS);
byte plaintext[] = c14n.canonicalizeSubtree(plaintextElement);
byte ciphertext[] = em.encrypt(plaintext, secretKey);
this.getCipherData().setCipherValue(new CipherValue(this._doc,
ciphertext));
this.setType(EncryptionConstants.TYPE_ELEMENT);
EncryptedData.replace(plaintextElement, this._constructionElement);