Package com.netscape.certsrv.client
Class PKIClient
java.lang.Object
com.netscape.certsrv.client.PKIClient
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.slf4j.Logger
static 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 TypeMethodDescriptionvoid
addIgnoredCertStatus
(Integer ignoredCertStatus) void
addRejectedCertStatus
(Integer rejectedCertStatus) void
close()
<T> T
createProxy
(String path, Class<T> clazz) javax.ws.rs.core.Response
<T> T
<T> T
<T> T
getEntity
(javax.ws.rs.core.Response response, javax.ws.rs.core.GenericType<T> clazz) getInfo()
javax.ws.rs.core.MediaType
void
handleErrorResponse
(javax.ws.rs.core.Response response) boolean
boolean
isRejected
(Integer certStatus) Marshall request object with custom mapping if available.javax.ws.rs.core.Response
<T> T
javax.ws.rs.core.Response
<T> T
void
setCrypto
(CryptoProvider crypto) void
setIgnoredCertStatuses
(Collection<Integer> ignoredCertStatuses) void
void
setRejectedCertStatuses
(Collection<Integer> rejectedCertStatuses) <T> T
unmarshall
(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
- Throws:
Exception
-
getSubsystem
-
marshall
Marshall request object with custom mapping if available.- Throws:
Exception
-
unmarshall
Unmarshall response object using custom mapping if available.- Throws:
Exception
-
handleErrorResponse
- Throws:
Exception
-
getEntity
- Throws:
Exception
-
getEntity
public <T> T getEntity(javax.ws.rs.core.Response response, javax.ws.rs.core.GenericType<T> clazz) throws Exception - Throws:
Exception
-
getConfig
-
getCrypto
-
setCrypto
-
getConnection
-
get
- Throws:
Exception
-
get
- Throws:
Exception
-
post
- Throws:
Exception
-
post
- Throws:
Exception
-
post
public javax.ws.rs.core.Response post(String path, javax.ws.rs.core.MultivaluedMap<String, String> content) throws Exception- Throws:
Exception
-
post
public <T> T post(String path, javax.ws.rs.core.MultivaluedMap<String, String> content, Class<T> responseType) throws Exception- Throws:
Exception
-
getInfo
- Throws:
Exception
-
addRejectedCertStatus
-
setRejectedCertStatuses
-
isRejected
-
addIgnoredCertStatus
-
setIgnoredCertStatuses
-
isIgnored
-
setOutput
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-