public class DefaultMediaLocationHashService extends Object implements MediaLocationHashService
| Constructor and Description |
|---|
DefaultMediaLocationHashService() |
| Modifier and Type | Method and Description |
|---|---|
String |
createHashForLocation(String folderQualifier,
String location)
Creates new hash for location and folderQualifier.
|
void |
setSalt(String salt) |
void |
verifyHashForLocation(String hash,
String folderQualifier,
String location)
Verifies hash against provided
folderQualifier and Media location. |
public void verifyHashForLocation(String hash, String folderQualifier, String location)
MediaLocationHashServicefolderQualifier and Media location.verifyHashForLocation in interface MediaLocationHashServicehash - hash to verify (possibly used in request)folderQualifier - the folder qualifierlocation - the locationpublic String createHashForLocation(String folderQualifier, String location)
MediaLocationHashServicecreateHashForLocation in interface MediaLocationHashServicefolderQualifier - the folder qualifierlocation - the Media locationpublic void setSalt(String salt)
Copyright © 2017 SAP SE. All Rights Reserved.