com.springframework.jwt.auth.SimplePermission Maven / Gradle / Ivy
package com.springframework.jwt.auth;
import org.springframework.web.method.HandlerMethod;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class SimplePermission implements PermissionApi {
@Override
public String[] getRoles(HttpServletRequest request, HttpServletResponse response, HandlerMethod handler) {
return new String[]{request.getRequestURI()};
}
@Override
public String[] getPermission(HttpServletRequest request, HttpServletResponse response, HandlerMethod handler) {
return new String[0];
}
}