|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KeySanitizer
Describes the behavior of an entity responsible for sanitizing keys. Basically, it will take a cache key and encrypt/decrypt to/from a string that can be safely used to create a cache entry.
For instance, it can take a cache key like '/foo%1' and convert it to some key that can be used to create a cache file's name on a file system. The operation proposed by aKeySanitizer
must be bijective.
Method Summary | |
---|---|
Object |
desanitizeKey(Object sanitizedCacheKey)
Will de-sanitize a given sanitized cache key. |
Object |
sanitizeKey(Object cacheKey)
Will sanitize a given cache key. |
Method Detail |
---|
Object sanitizeKey(Object cacheKey) throws KeySanitationExcepion
cacheKey
- the cache key to sanitize.
KeySanitationExcepion
Object desanitizeKey(Object sanitizedCacheKey) throws KeySanitationExcepion
sanitizedCacheKey
- the cache key to de-sanitize.
KeySanitationExcepion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |