| | |
| | | import de.uhilger.httpserver.auth.FormAuthenticator; |
| | | import de.uhilger.httpserver.auth.TokenAuthenticator; |
| | | import de.uhilger.httpserver.auth.realm.User; |
| | | import de.uhilger.httpserver.base.handler.HttpHelper; |
| | | import de.uhilger.httpserver.base.handler.HttpResponder; |
| | | import java.io.IOException; |
| | | import java.util.HashMap; |
| | |
| | | |
| | | @Override |
| | | protected User getUser(HttpExchange exchange) throws IOException { |
| | | String body = bodyLesen(exchange); |
| | | String body = new HttpHelper().bodyLesen(exchange); |
| | | String[] nameWertPaare = body.split(TokenAuthenticator.STR_AMP); |
| | | HashMap<String, String> werte = new HashMap(); |
| | | for (String nameWert : nameWertPaare) { |