diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-18 10:08:52 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-18 10:08:52 -0700 |
commit | 22bd8bcc80b850dc2308be50cf2886c39b0655da (patch) | |
tree | 01f98cf67e21f06f94f85b8cc38ae63b8ec39df9 /src/main/java/org/traccar/database | |
parent | c248ed30047a0525bf792730a0fbd4de0c89ad8e (diff) | |
download | trackermap-server-22bd8bcc80b850dc2308be50cf2886c39b0655da.tar.gz trackermap-server-22bd8bcc80b850dc2308be50cf2886c39b0655da.tar.bz2 trackermap-server-22bd8bcc80b850dc2308be50cf2886c39b0655da.zip |
Refactor device password
Diffstat (limited to 'src/main/java/org/traccar/database')
-rw-r--r-- | src/main/java/org/traccar/database/DeviceManager.java | 18 | ||||
-rw-r--r-- | src/main/java/org/traccar/database/IdentityManager.java | 2 |
2 files changed, 0 insertions, 20 deletions
diff --git a/src/main/java/org/traccar/database/DeviceManager.java b/src/main/java/org/traccar/database/DeviceManager.java index a3e04f920..eee19c4c2 100644 --- a/src/main/java/org/traccar/database/DeviceManager.java +++ b/src/main/java/org/traccar/database/DeviceManager.java @@ -100,24 +100,6 @@ public class DeviceManager extends BaseObjectManager<Device> implements Identity } @Override - public String getDevicePassword(long id, String protocol, String defaultPassword) { - - String password = lookupAttributeString(id, Command.KEY_DEVICE_PASSWORD, null, false, false); - if (password != null) { - return password; - } - - if (protocol != null) { - password = Context.getConfig().getString(Keys.PROTOCOL_DEVICE_PASSWORD.withPrefix(protocol)); - if (password != null) { - return password; - } - } - - return defaultPassword; - } - - @Override public Set<Long> getAllItems() { Set<Long> result = super.getAllItems(); if (result.isEmpty()) { diff --git a/src/main/java/org/traccar/database/IdentityManager.java b/src/main/java/org/traccar/database/IdentityManager.java index 10a64ebd9..1897c637f 100644 --- a/src/main/java/org/traccar/database/IdentityManager.java +++ b/src/main/java/org/traccar/database/IdentityManager.java @@ -24,8 +24,6 @@ public interface IdentityManager { Device getByUniqueId(String uniqueId) throws Exception; - String getDevicePassword(long id, String protocol, String defaultPassword); - Position getLastPosition(long deviceId); boolean isLatestPosition(Position position); |