public interface IProtectionService
| Modifier and Type | Method and Description |
|---|---|
byte[] |
protect(byte[] bytesToProtect)
Protects the given content in an appropriate way so that uprotection is only possible with a specific knowledge
or priviledge, depending on the implementation.
|
byte[] |
unprotect(byte[] protectedBytes)
Removes the protection from the given protected content.
|
byte[] protect(byte[] bytesToProtect)
throws ClientException
bytesToProtect - The content to protect.ClientException - If the protection fails.byte[] unprotect(byte[] protectedBytes)
throws ClientException
protectedBytes - The content to unprotect.ClientException - If the unprotection fails.