aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/org/traccar/api/SecurityContextApi.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/org/traccar/api/SecurityContextApi.java b/src/org/traccar/api/SecurityContextApi.java
index df10340c5..38ce7e33d 100644
--- a/src/org/traccar/api/SecurityContextApi.java
+++ b/src/org/traccar/api/SecurityContextApi.java
@@ -20,18 +20,12 @@ import javax.ws.rs.core.SecurityContext;
public class SecurityContextApi implements SecurityContext {
- private static final String AUTHENTICATION_SCHEME = "BASIC";
- private static final boolean IS_SECURE = true;
-
private Principal userPrincipal;
public SecurityContextApi(Principal userPrincipal) {
this.userPrincipal = userPrincipal;
}
- public SecurityContextApi() {
- }
-
@Override
public Principal getUserPrincipal() {
return userPrincipal;
@@ -45,11 +39,12 @@ public class SecurityContextApi implements SecurityContext {
@Override
public boolean isSecure() {
- return IS_SECURE;
+ return false;
}
@Override
public String getAuthenticationScheme() {
- return AUTHENTICATION_SCHEME;
+ return BASIC_AUTH;
}
+
}