public class SHA256KeyHashingScheme extends java.lang.Object implements KeyHashingScheme
KeyHashingScheme
based on the
SHA-256
algorithm. The hashes produced are hex-encoded SHA-256
digests and hence are always 64-character hexadecimal
strings.Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
SHA256KeyHashingScheme() |
Modifier and Type | Method and Description |
---|---|
private java.security.MessageDigest |
getDigest() |
java.lang.String |
hash(java.lang.String key)
Maps a storage key to a cache key.
|
public java.lang.String hash(java.lang.String key)
KeyHashingScheme
hash
in interface KeyHashingScheme
key
- what the higher-level HTTP cache wants to use
as its key for looking up cache entriesprivate java.security.MessageDigest getDigest()