public class Md5ImageRequestHashBuilder extends Object implements ImageRequestHashBuilder
ImageRequestHashBuilder that calculates a uses an MD5
hash of all parameters including an additional custom hash token.| Constructor and Description |
|---|
Md5ImageRequestHashBuilder(@NonNull String hashToken)
Create a new builder instance for creating MD5 hashes of all paremeters including an
additional specified token.
|
| Modifier and Type | Method and Description |
|---|---|
String |
calculateHash(String context,
String ratio,
ImageResolutionDto imageResolution,
ImageVariantDto imageVariant,
String... size)
Calculate a security hash of the different parameters.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmd5public Md5ImageRequestHashBuilder(@NonNull
@NonNull String hashToken)
hashToken - that will be added to the parameters when building the hashpublic String calculateHash(String context, String ratio, ImageResolutionDto imageResolution, ImageVariantDto imageVariant, String... size)
ImageRequestHashBuildercalculateHash in interface ImageRequestHashBuildercontext - of the imageratio - can be nullimageResolution - can be nullimageVariant - requested - can be nullsize - can be emptyCopyright © 2020. All rights reserved.