Class PKIClient
java.lang.Object
com.netscape.certsrv.client.PKIClient
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPKIClient(ClientConfig config) PKIClient(ClientConfig config, String apiVersion, org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback) PKIClient(ClientConfig config, org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> T<T> T<T> org.apache.http.HttpEntityentity(T object) <T> T<T> T<T> Collection<T> <T> Collection<T> getEntities(org.apache.http.client.methods.CloseableHttpResponse httpResp, Class<T> clazz) <T> TgetInfo()voidhandleErrorResponse(org.apache.http.client.methods.CloseableHttpResponse httpResp) Marshall request object with custom mapping if available.<T> Tpatch(String path, Map<String, Object> params, org.apache.http.HttpEntity entity, Class<T> responseType) <T> T<T> T<T> T<T> Tpost(String path, Map<String, Object> params, org.apache.http.HttpEntity entity, Class<T> responseType) <T> Tput(String path, Map<String, Object> params, org.apache.http.HttpEntity entity, Class<T> responseType) voidorg.apache.http.client.utils.URIBuilder<T> Tunmarshall(org.apache.http.HttpEntity entity, Class<T> clazz) Unmarshall response object using custom mapping if available.<T> Collection<T> unmarshallCollection(org.apache.http.HttpEntity entity, Class<T> clazz)
-
Field Details
-
logger
public static org.slf4j.Logger logger -
MESSAGE_FORMATS
-
config
-
connection
-
apiVersion
-
infoClient
-
info
-
basicURI
-
-
Constructor Details
-
PKIClient
- Throws:
Exception
-
PKIClient
public PKIClient(ClientConfig config, org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback) throws Exception - Throws:
Exception
-
PKIClient
public PKIClient(ClientConfig config, String apiVersion, org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback) throws Exception - Throws:
Exception
-
-
Method Details
-
getAPIVersion
-
getDefaultMimeType
-
getSubsystem
-
marshall
-
unmarshall
-
unmarshallCollection
public <T> Collection<T> unmarshallCollection(org.apache.http.HttpEntity entity, Class<T> clazz) throws Exception - Throws:
Exception
-
handleErrorResponse
-
entity
-
getEntity
-
getEntities
public <T> Collection<T> getEntities(org.apache.http.client.methods.CloseableHttpResponse httpResp, Class<T> clazz) throws Exception - Throws:
Exception
-
getConfig
-
getConnection
-
target
-
get
-
get
-
getCollection
-
post
-
post
-
post
-
post
-
put
-
patch
-
delete
-
delete
-
getInfo
-
setOutput
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-