summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/system/SystemCertificateResource.java
blob: 1096520fc7a0dd0bbc3f2ecfbb26a7f2d322a2c2 (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
package com.netscape.certsrv.system;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.jboss.resteasy.annotations.ClientResponseType;

import com.netscape.certsrv.cert.CertData;

@Path("config/cert")
public interface SystemCertificateResource {

    /**
     * Used to retrieve the transport certificate
     */
    @GET
    @Path("transport")
    @ClientResponseType(entityType=CertData.class)
    @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
    public Response getTransportCert();

}