aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/UserPrincipal.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-02 10:42:36 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-02 10:42:36 +1300
commitfe599125befa708ec3547b591918effe2ff9beb8 (patch)
tree11bc8413e54368e3c2713c80c46c2d12a27ae6a4 /src/org/traccar/api/UserPrincipal.java
parent2d6533ef6ba4fd436c5737f3755dd34a4c08e8e7 (diff)
downloadtrackermap-server-fe599125befa708ec3547b591918effe2ff9beb8.tar.gz
trackermap-server-fe599125befa708ec3547b591918effe2ff9beb8.tar.bz2
trackermap-server-fe599125befa708ec3547b591918effe2ff9beb8.zip
Add session authentication option
Diffstat (limited to 'src/org/traccar/api/UserPrincipal.java')
-rw-r--r--src/org/traccar/api/UserPrincipal.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/org/traccar/api/UserPrincipal.java b/src/org/traccar/api/UserPrincipal.java
index d858b6f47..25fcdb233 100644
--- a/src/org/traccar/api/UserPrincipal.java
+++ b/src/org/traccar/api/UserPrincipal.java
@@ -19,12 +19,10 @@ import java.security.Principal;
public class UserPrincipal implements Principal {
- private String name;
private long userId;
- public UserPrincipal(long userId, String name) {
+ public UserPrincipal(long userId) {
this.userId = userId;
- this.name = name;
}
public Long getUserId() {
@@ -33,7 +31,7 @@ public class UserPrincipal implements Principal {
@Override
public String getName() {
- return name;
+ return null;
}
}