Removed unused method for getting supported checksum algorithms
This commit is contained in:
parent
5b1cc8ac33
commit
b45d514b83
@ -33,8 +33,6 @@ public interface FirmwareService {
|
|||||||
|
|
||||||
Firmware saveFirmware(Firmware firmware);
|
Firmware saveFirmware(Firmware firmware);
|
||||||
|
|
||||||
PageData<String> getSupportedChecksumAlgorithms(PageLink pageLink);
|
|
||||||
|
|
||||||
String generateChecksum(ChecksumAlgorithm checksumAlgorithm, ByteBuffer data) throws ThingsboardException;
|
String generateChecksum(ChecksumAlgorithm checksumAlgorithm, ByteBuffer data) throws ThingsboardException;
|
||||||
|
|
||||||
Firmware findFirmwareById(TenantId tenantId, FirmwareId firmwareId);
|
Firmware findFirmwareById(TenantId tenantId, FirmwareId firmwareId);
|
||||||
|
|||||||
@ -148,17 +148,6 @@ public class BaseFirmwareService implements FirmwareService {
|
|||||||
return hashFunction.hashBytes(data.array()).toString();
|
return hashFunction.hashBytes(data.array()).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public PageData<String> getSupportedChecksumAlgorithms(PageLink pageLink) {
|
|
||||||
List<String> methodNames = new ArrayList<>();
|
|
||||||
Method[] hashingMethods = Hashing.class.getMethods();
|
|
||||||
Arrays.stream(hashingMethods).forEach(method -> {
|
|
||||||
methodNames.add(method.getName());
|
|
||||||
});
|
|
||||||
return new PageData<>(methodNames, 1, methodNames.size(), false);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Firmware findFirmwareById(TenantId tenantId, FirmwareId firmwareId) {
|
public Firmware findFirmwareById(TenantId tenantId, FirmwareId firmwareId) {
|
||||||
log.trace("Executing findFirmwareById [{}]", firmwareId);
|
log.trace("Executing findFirmwareById [{}]", firmwareId);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user