Package org.dogtagpki.server.rest
Class CAInfoService
- java.lang.Object
-
- com.netscape.cms.servlet.base.PKIService
-
- org.dogtagpki.server.rest.CAInfoService
-
- All Implemented Interfaces:
CAInfoResource
public class CAInfoService extends PKIService implements CAInfoResource
- Author:
- Ade Lee This class returns CA info, including KRA-related values the CA clients may need to know (e.g. for generating a CRMF cert request that will cause keys to be archived in KRA). The KRA-related info is read from the KRAInfoService, which is queried according to the KRA Connector configuration. After the KRAInfoService has been successfully contacted, the recorded KRA-related settings are regarded as authoritative. The KRA is contacted ONLY if the current info is NOT authoritative, otherwise the currently recorded values are used. This means that any change to relevant KRA configuration (which should occur seldom if ever) necessitates restart of the CA subsystem. If this is unsuccessful (e.g. if the KRA is down or the connector is misconfigured) we use the default values, which may be incorrect.
-
-
Field Summary
-
Fields inherited from class com.netscape.cms.servlet.base.PKIService
bannerFile, DEFAULT_LONG_CACHE_LIFETIME, DEFAULT_SIZE, headers, MESSAGE_FORMATS, MIN_FILTER_LENGTH, request, servletContext, servletRequest, uriInfo
-
-
Constructor Summary
Constructors Constructor Description CAInfoService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
getInfo()
-
Methods inherited from class com.netscape.cms.servlet.base.PKIService
createCreatedResponse, createNoContentResponse, createOKResponse, createOKResponse, getBanner, getInstanceDir, getLocale, getParams, getResponseFormat, getResponseFormat, getVersion, isBannerEnabled, resolveFormat, resolveFormat, sendConditionalGetResponse
-
-
-
-
Method Detail
-
getInfo
public javax.ws.rs.core.Response getInfo() throws java.lang.Exception
- Specified by:
getInfo
in interfaceCAInfoResource
- Throws:
java.lang.Exception
-
-