Class DefaultMediaLocationHashService
- java.lang.Object
-
- de.hybris.platform.media.services.impl.DefaultMediaLocationHashService
-
- All Implemented Interfaces:
MediaLocationHashService
public class DefaultMediaLocationHashService extends java.lang.Object implements MediaLocationHashService
-
-
Constructor Summary
Constructors Constructor Description DefaultMediaLocationHashService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcreateHashForLocation(java.lang.String folderQualifier, java.lang.String location)Creates new hash for location and folderQualifier.voidsetSalt(java.lang.String salt)voidverifyHashForLocation(java.lang.String hash, java.lang.String folderQualifier, java.lang.String location)Verifies hash against providedfolderQualifierand Medialocation.
-
-
-
Method Detail
-
verifyHashForLocation
public void verifyHashForLocation(java.lang.String hash, java.lang.String folderQualifier, java.lang.String location)Description copied from interface:MediaLocationHashServiceVerifies hash against providedfolderQualifierand Medialocation.- Specified by:
verifyHashForLocationin interfaceMediaLocationHashService- Parameters:
hash- hash to verify (possibly used in request)folderQualifier- the folder qualifierlocation- the location
-
createHashForLocation
public java.lang.String createHashForLocation(java.lang.String folderQualifier, java.lang.String location)Description copied from interface:MediaLocationHashServiceCreates new hash for location and folderQualifier.- Specified by:
createHashForLocationin interfaceMediaLocationHashService- Parameters:
folderQualifier- the folder qualifierlocation- the Media location- Returns:
- created hash string
-
setSalt
public void setSalt(java.lang.String salt)
-
-