aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/Authorization.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-15 09:19:58 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-15 09:19:58 +1300
commit12693f823d17e106361c9626d14d9baf040af7e4 (patch)
tree11fdc2343dd08e6edde0f17100afa0490fe87e4e /src/org/traccar/helper/Authorization.java
parent6941836a13bc27192c8dc27c4171517333b83a7d (diff)
parentb4eea84b009e7a3c9211cb80638737a21dac7423 (diff)
downloadtrackermap-server-12693f823d17e106361c9626d14d9baf040af7e4.tar.gz
trackermap-server-12693f823d17e106361c9626d14d9baf040af7e4.tar.bz2
trackermap-server-12693f823d17e106361c9626d14d9baf040af7e4.zip
Merge pull request #1527 from guterresrafael/master
Add api support to http methods and status codes
Diffstat (limited to 'src/org/traccar/helper/Authorization.java')
-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<>();