Set Up Policy Enforcer

I am new to keycloak and i am going through with the quickstart at the Link:


  • The project merely expose one Rest-API:

public class ApplicationController {

@RequestMapping(value = "/api/{employee}", method = RequestMethod.GET)
public Employee salary(@PathVariable String employee) {
    return new Employee(employee);

public static class Employee {

    private final String name;

    public Employee(String name) { = name;

    public String getName() {
        return name;