summaryrefslogtreecommitdiffstats
path: root/java/src/c
Commit message (Expand)AuthorAgeFilesLines
* Java unit test is again similar to Python.Emmanuel Raviart2004-07-254-59/+105
* Added Java LassoUser.getAuthenticationMethodEmmanuel Raviart2004-07-231-0/+18
* First non regression test that supports full logout procedure... and shows aEmmanuel Raviart2004-07-231-0/+13
* Added (incomplete) logout tests for Python & Java.Emmanuel Raviart2004-07-232-5/+7
* Corrected Java non-regression test bug (found with Sun non free jdk :-/ ).Emmanuel Raviart2004-07-221-3/+5
* Nearly completed Python & Java first non-regression test for login.Emmanuel Raviart2004-07-222-4/+20
* Added Java Lasso method getRequestTypeFromSoapMsg.Emmanuel Raviart2004-07-221-0/+10
* A little more java binding and non-regression tests.Emmanuel Raviart2004-07-221-1/+48
* Java & Python tests do not regress. They even progress.Emmanuel Raviart2004-07-221-1/+1
* Corrected Lasso URL for java binding.Emmanuel Raviart2004-07-222-2/+2
* Some progress in first non regression test.Emmanuel Raviart2004-07-223-7/+7
* C (before C99) didn't allow // as comments; trying to be kindFrederic Peters2004-07-213-6/+6
* fixed lasso site urlFrederic Peters2004-07-2113-13/+13
* Changed Makefile for Kaffe support.Emmanuel Raviart2004-07-2114-96/+134
* Added Java binding.Emmanuel Raviart2004-07-2015-0/+1397
dewata/public_git/pki.git/tree/base/common?id=20a307e4683e62b033f7662ed4aa2f18dfad6226'>common/src/com/netscape/certsrv/cert/CertResource.java
blob: 9d6a7c89bc43e9337b09de7c31a2167b3898431d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package com.netscape.certsrv.cert;

import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Response;

import org.jboss.resteasy.annotations.ClientResponseType;

import com.netscape.certsrv.acls.ACLMapping;
import com.netscape.certsrv.authentication.AuthMethodMapping;
import com.netscape.certsrv.dbs.certdb.CertId;

@Path("")
public interface CertResource {

    @GET
    @Path("certs")
    @ClientResponseType(entityType=CertDataInfos.class)
    public Response listCerts(
            @QueryParam("status") String status,
            @QueryParam("maxResults") Integer maxResults,
            @QueryParam("maxTime") Integer maxTime,
            @QueryParam("start") Integer start,
            @QueryParam("size") Integer size);

    @POST
    @Path("certs/search")
    @ClientResponseType(entityType=CertDataInfos.class)
    public Response searchCerts(
            CertSearchRequest data,
            @QueryParam("start") Integer start,
            @QueryParam("size") Integer size);

    @GET
    @Path("certs/{id}")
    @ClientResponseType(entityType=CertData.class)
    public Response getCert(@PathParam("id") CertId id);

    @GET
    @Path("agent/certs/{id}")
    @ClientResponseType(entityType=CertData.class)
    @ACLMapping("certs")
    @AuthMethodMapping("certs")
    public Response reviewCert(@PathParam("id") CertId id);

    @POST
    @Path("agent/certs/{id}/revoke-ca")
    @ClientResponseType(entityType=CertRequestInfo.class)
    @ACLMapping("certs")
    @AuthMethodMapping("certs")
    public Response revokeCACert(@PathParam("id") CertId id, CertRevokeRequest request);

    @POST
    @Path("agent/certs/{id}/revoke")
    @ClientResponseType(entityType=CertRequestInfo.class)
    @ACLMapping("certs")
    @AuthMethodMapping("certs")
    public Response revokeCert(@PathParam("id") CertId id, CertRevokeRequest request);

    @POST
    @Path("agent/certs/{id}/unrevoke")
    @ClientResponseType(entityType=CertRequestInfo.class)
    @ACLMapping("certs")
    @AuthMethodMapping("certs")
    public Response unrevokeCert(@PathParam("id") CertId id);
}