|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Obfuscator
Interface used as part of a Policy
to allow application authors to obfuscate
licensing data that will be stored into a SharedPreferences file.
Any transformation scheme must be reversable. Implementing classes may optionally implement an integrity check to further prevent modification to preference data. Implementing classes should use device-specific information as a key in the obfuscation algorithm to prevent obfuscated preferences from being shared among devices.
Method Summary | |
---|---|
java.lang.String |
obfuscate(java.lang.String original)
Obfuscate a string that is being stored into shared preferences. |
java.lang.String |
unobfuscate(java.lang.String obfuscated)
Undo the transformation applied to data by the obfuscate() method. |
Method Detail |
---|
java.lang.String obfuscate(java.lang.String original)
original
- The data that is to be obfuscated.
java.lang.String unobfuscate(java.lang.String obfuscated) throws ValidationException
original
- The data that is to be obfuscated.
ValidationException
- Optionally thrown if a data integrity check fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |