aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorRafael Guterres <guterresrafael@gmail.com>2015-11-14 04:01:37 -0200
committerRafael Guterres <guterresrafael@gmail.com>2015-11-14 04:01:37 -0200
commitb4eea84b009e7a3c9211cb80638737a21dac7423 (patch)
tree4e8b75530ffe22bb20221122149122e5f5ed5447 /src/org/traccar/helper
parentd7d53864f610211a1591d056ccf8e7295438e4a6 (diff)
downloadtrackermap-server-b4eea84b009e7a3c9211cb80638737a21dac7423.tar.gz
trackermap-server-b4eea84b009e7a3c9211cb80638737a21dac7423.tar.bz2
trackermap-server-b4eea84b009e7a3c9211cb80638737a21dac7423.zip
Add api support to http methods and status codes.
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/Authorization.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/helper/Authorization.java b/src/org/traccar/helper/Authorization.java
index fc34687cd..d0877630d 100644
--- a/src/org/traccar/helper/Authorization.java
+++ b/src/org/traccar/helper/Authorization.java
@@ -28,13 +28,13 @@ public final class Authorization {
private Authorization() {
}
- public static final String HEADER = "Authorization";
- public static final String SCHEME = "Basic";
- public static final String REGEX = SCHEME + " ";
+ public static final String AUTHORIAZTION_SCHEME_VALUE = "Basic";
+ public static final String REGEX = AUTHORIAZTION_SCHEME_VALUE + " ";
public static final String REPLACEMENT = "";
public static final String TOKENIZER = ":";
public static final String USERNAME = "username";
public static final String PASSWORD = "password";
+ public static final String WWW_AUTHENTICATE_VALUE = "Basic realm=\"api\"";
public static Map<String, String> parse(String authorization) {
Map<String, String> authMap = new HashMap<>();