com.jetdrone.vertx.yoke.middleware.JWT Maven / Gradle / Ivy
package com.jetdrone.vertx.yoke.middleware;
import com.jetdrone.vertx.yoke.Middleware;
import com.jetdrone.vertx.yoke.Yoke;
import com.jetdrone.vertx.yoke.core.YokeException;
import org.jetbrains.annotations.NotNull;
import org.vertx.java.core.Handler;
import org.vertx.java.core.json.JsonObject;
import java.util.regex.Pattern;
public class JWT extends Middleware {
private static final Pattern BEARER = Pattern.compile("^Bearer$", Pattern.CASE_INSENSITIVE);
public interface JWTHandler {
public void handle(JsonObject token, Handler