aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/api/signature
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-08-02 21:01:06 -0700
committerAnton Tananaev <anton@traccar.org>2022-08-02 21:01:06 -0700
commitbb7bdcfc3389b6822b7680837386e3650962f30a (patch)
tree624eb4d9d8dcb6fff2169db85213387cf91ee26b /src/main/java/org/traccar/api/signature
parentbd55a835340547aabc3f401bb97e181a3e70df8f (diff)
downloadtrackermap-server-bb7bdcfc3389b6822b7680837386e3650962f30a.tar.gz
trackermap-server-bb7bdcfc3389b6822b7680837386e3650962f30a.tar.bz2
trackermap-server-bb7bdcfc3389b6822b7680837386e3650962f30a.zip
Notifications unsubscribe option
Diffstat (limited to 'src/main/java/org/traccar/api/signature')
-rw-r--r--src/main/java/org/traccar/api/signature/TokenManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/api/signature/TokenManager.java b/src/main/java/org/traccar/api/signature/TokenManager.java
index a51234a95..a352ecc10 100644
--- a/src/main/java/org/traccar/api/signature/TokenManager.java
+++ b/src/main/java/org/traccar/api/signature/TokenManager.java
@@ -46,6 +46,10 @@ public class TokenManager {
this.cryptoManager = cryptoManager;
}
+ public String generateToken(long userId) throws IOException, GeneralSecurityException, StorageException {
+ return generateToken(userId, null);
+ }
+
public String generateToken(
long userId, Date expiration) throws IOException, GeneralSecurityException, StorageException {
Data data = new Data();