package org.jboss.resteasy.test.crypto.resource;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

import org.jboss.resteasy.annotations.security.doseta.Signed;
import org.jboss.resteasy.annotations.security.doseta.Verify;

@Path("/signed")
public interface SigningProxy {
    @GET
    @Verify
    @Produces("text/plain")
    @Path("bad-signature")
    String bad();

    @GET
    @Verify
    @Produces("text/plain")
    String hello();

    @POST
    @Consumes("text/plain")
    @Signed(selector = "test", domain = "samplezone.org")
    void postSimple(String input);
}
