Class ProtectedResource

java.lang.Object
com.example.helloworld.resources.ProtectedResource

@Path("/protected") @Produces("text/plain") public class ProtectedResource extends Object
  • Constructor Details

    • ProtectedResource

      public ProtectedResource()
  • Method Details

    • showSecret

      @PermitAll @GET public String showSecret(User user)
    • showAdminSecret

      @RolesAllowed("ADMIN") @GET @Path("admin") public String showAdminSecret(User user)