diff options
author | Rafael Guterres <guterresrafael@gmail.com> | 2015-11-06 01:06:59 -0200 |
---|---|---|
committer | Rafael Guterres <guterresrafael@gmail.com> | 2015-11-06 01:06:59 -0200 |
commit | d7d53864f610211a1591d056ccf8e7295438e4a6 (patch) | |
tree | 56c6a8ccf990a9d53a0532f3401f28f9cc17e811 /src/org/traccar/helper/Authorization.java | |
parent | 6214776d2ff4c10de27add89d5de0be8999da146 (diff) | |
download | trackermap-server-d7d53864f610211a1591d056ccf8e7295438e4a6.tar.gz trackermap-server-d7d53864f610211a1591d056ccf8e7295438e4a6.tar.bz2 trackermap-server-d7d53864f610211a1591d056ccf8e7295438e4a6.zip |
Fix checkstyle
Diffstat (limited to 'src/org/traccar/helper/Authorization.java')
-rw-r--r-- | src/org/traccar/helper/Authorization.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/helper/Authorization.java b/src/org/traccar/helper/Authorization.java index 0dc27fe5d..fc34687cd 100644 --- a/src/org/traccar/helper/Authorization.java +++ b/src/org/traccar/helper/Authorization.java @@ -24,10 +24,10 @@ import org.jboss.netty.handler.codec.base64.Base64; import org.jboss.netty.util.CharsetUtil; public final class Authorization { - + private Authorization() { } - + public static final String HEADER = "Authorization"; public static final String SCHEME = "Basic"; public static final String REGEX = SCHEME + " "; @@ -39,7 +39,7 @@ public final class Authorization { public static Map<String, String> parse(String authorization) { Map<String, String> authMap = new HashMap<>(); final String encodedUsernameAndPassword = authorization.replaceFirst(REGEX, REPLACEMENT); - ChannelBuffer buffer = ChannelBuffers.copiedBuffer(encodedUsernameAndPassword,CharsetUtil.UTF_8); + ChannelBuffer buffer = ChannelBuffers.copiedBuffer(encodedUsernameAndPassword, CharsetUtil.UTF_8); String usernameAndPassword = Base64.decode(buffer).toString(CharsetUtil.UTF_8); final StringTokenizer tokenizer = new StringTokenizer(usernameAndPassword, TOKENIZER); authMap.put(USERNAME, tokenizer.nextToken()); |