Class HashCodeChecksumStrategy
java.lang.Object
org.ocpsoft.rewrite.servlet.config.encodequery.HashCodeChecksumStrategy
- All Implemented Interfaces:
ChecksumStrategy
ChecksumStrategy based on Java String.hashCode() equality- Author:
- Lincoln Baxter, III
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanchecksumValid(String token) Returntrueif the given token contains a valid checksum.embedChecksum(String token) Return the given token with an additional added checksum.removeChecksum(String token) Extract the checksum from the given token.
-
Constructor Details
-
HashCodeChecksumStrategy
public HashCodeChecksumStrategy()
-
-
Method Details
-
checksumValid
Description copied from interface:ChecksumStrategyReturntrueif the given token contains a valid checksum.- Specified by:
checksumValidin interfaceChecksumStrategy
-
embedChecksum
Description copied from interface:ChecksumStrategyReturn the given token with an additional added checksum.- Specified by:
embedChecksumin interfaceChecksumStrategy
-
removeChecksum
Description copied from interface:ChecksumStrategyExtract the checksum from the given token.- Specified by:
removeChecksumin interfaceChecksumStrategy
-