| Modifier and Type | Method and Description |
|---|---|
Element |
decrypt(Element encryptedDataElement,
Key... key)
Decrypts the element and all its descendants (if any)
|
Element |
encrypt(Element element,
Key... key)
Encrypts the element with the given key or the default key
|
static XMLDocumentEncrypter |
getEncrypter()
Gets the Encrypter for
Elements |
void |
setEncryptElementNames(boolean encryptElementNames)
Decides if the element names must be also encrypted or only their content
|
public static XMLDocumentEncrypter getEncrypter()
Elementspublic Element decrypt(Element encryptedDataElement, Key... key) throws Exception
public Element encrypt(Element element, Key... key) throws Exception
public void setEncryptElementNames(boolean encryptElementNames)
encryptElementNamestrue - if the element names have to be encrypted, false if only their content has to beCopyright © 2017. All Rights Reserved.