|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gcube.common.utils.encryption.XMLDocumentEncrypter
public class XMLDocumentEncrypter
Encrypter for Element objects
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static XMLDocumentEncrypter getEncrypter()
Elements
public Element decrypt(Element encryptedDataElement,
Key... key)
throws Exception
decrypt in interface Encrypter<Element>encryptedDataElement - the object to decryptkey - the key
Exception - if the key is not available, invalid or the object cannot be decrypted
public Element encrypt(Element element,
Key... key)
throws Exception
encrypt in interface Encrypter<Element>element - the object to encryptkey - the key
Exception - if the key is not available, invalid or the object cannot be encryptedpublic void setEncryptElementNames(boolean encryptElementNames)
encryptElementNamestrue - if the element names have to be encrypted, false if only their content has to be
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||