Class PKIClient
java.lang.Object
com.netscape.certsrv.client.PKIClient
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.slf4j.Loggerstatic final String[]javax.ws.rs.core.MediaType -
Constructor Summary
ConstructorsConstructorDescriptionPKIClient(ClientConfig config) PKIClient(ClientConfig config, CryptoProvider crypto) PKIClient(ClientConfig config, CryptoProvider crypto, org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIgnoredCertStatus(Integer ignoredCertStatus) voidaddRejectedCertStatus(Integer rejectedCertStatus) voidclose()<T> TcreateProxy(String path, Class<T> clazz) javax.ws.rs.core.Response<T> T<T> T<T> TgetEntity(javax.ws.rs.core.Response response, javax.ws.rs.core.GenericType<T> clazz) getInfo()javax.ws.rs.core.MediaTypevoidhandleErrorResponse(javax.ws.rs.core.Response response) booleanbooleanisRejected(Integer certStatus) Marshall request object with custom mapping if available.javax.ws.rs.core.Response<T> Tjavax.ws.rs.core.Response<T> TvoidsetCrypto(CryptoProvider crypto) voidsetIgnoredCertStatuses(Collection<Integer> ignoredCertStatuses) voidvoidsetRejectedCertStatuses(Collection<Integer> rejectedCertStatuses) <T> Tunmarshall(javax.ws.rs.core.Response response, Class<T> clazz) Unmarshall response object using custom mapping if available.
-
Field Details
-
logger
public static org.slf4j.Logger logger -
MESSAGE_FORMATS
-
config
-
connection
-
messageFormat
public javax.ws.rs.core.MediaType messageFormat -
crypto
-
infoClient
-
info
-
-
Constructor Details
-
PKIClient
- Throws:
Exception
-
PKIClient
- Throws:
Exception
-
PKIClient
public PKIClient(ClientConfig config, CryptoProvider crypto, org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback) throws Exception - Throws:
Exception
-
-
Method Details
-
getMessageFormat
public javax.ws.rs.core.MediaType getMessageFormat() -
createProxy
-
getSubsystem
-
marshall
-
unmarshall
-
handleErrorResponse
-
getEntity
-
getEntity
-
getConfig
-
getCrypto
-
setCrypto
-
getConnection
-
get
-
get
-
post
-
post
-
post
-
post
-
getInfo
-
addRejectedCertStatus
-
setRejectedCertStatuses
-
isRejected
-
addIgnoredCertStatus
-
setIgnoredCertStatuses
-
isIgnored
-
setOutput
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-