public interface ImageRequestHashBuilder
ImageRequestHashBuilder configured, all requests containing a valid hash for their
parameters will be accepted. Whereas otherwise only requests for resolutions that are registered
server-side will be accepted.Md5ImageRequestHashBuilder| 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.
|
static ImageRequestHashBuilder |
md5(String hashToken)
Create a default
Md5ImageRequestHashBuilder implementation using
a base token to be added to the parameters when calculating the hash. |
String calculateHash(String context, String ratio, ImageResolutionDto imageResolution, ImageVariantDto imageVariant, String... size)
context - of the imageratio - can be nullimageResolution - can be nullimageVariant - requested - can be nullsize - can be emptystatic ImageRequestHashBuilder md5(String hashToken)
Md5ImageRequestHashBuilder implementation using
a base token to be added to the parameters when calculating the hash.hashToken - token to use for the MD5 hashCopyright © 2020. All rights reserved.