Package com.netscape.certsrv.client
Class PKIClient
- java.lang.Object
-
- com.netscape.certsrv.client.PKIClient
-
public class PKIClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description ClientConfig
config
PKIConnection
connection
CryptoProvider
crypto
InfoClient
infoClient
static java.lang.String[]
MESSAGE_FORMATS
boolean
verbose
-
Constructor Summary
Constructors Constructor Description PKIClient(ClientConfig config)
PKIClient(ClientConfig config, CryptoProvider crypto)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIgnoredCertStatus(java.lang.Integer ignoredCertStatus)
void
addRejectedCertStatus(java.lang.Integer rejectedCertStatus)
<T> T
createProxy(java.lang.String subsystem, java.lang.Class<T> clazz)
byte[]
downloadCACertChain(java.lang.String serverURI)
byte[]
downloadCACertChain(java.lang.String uri, java.lang.String servletPath)
ClientConfig
getConfig()
PKIConnection
getConnection()
CryptoProvider
getCrypto()
<T> T
getEntity(javax.ws.rs.core.Response response, java.lang.Class<T> clazz)
<T> T
getEntity(javax.ws.rs.core.Response response, javax.ws.rs.core.GenericType<T> clazz)
java.lang.String
getSubsystem()
boolean
isIgnored(java.lang.Integer certStatus)
boolean
isRejected(java.lang.Integer certStatus)
boolean
isVerbose()
void
setCrypto(CryptoProvider crypto)
void
setIgnoredCertStatuses(java.util.Collection<java.lang.Integer> ignoredCertStatuses)
void
setRejectedCertStatuses(java.util.Collection<java.lang.Integer> rejectedCertStatuses)
void
setVerbose(boolean verbose)
-
-
-
Field Detail
-
MESSAGE_FORMATS
public static final java.lang.String[] MESSAGE_FORMATS
-
config
public ClientConfig config
-
connection
public PKIConnection connection
-
crypto
public CryptoProvider crypto
-
infoClient
public InfoClient infoClient
-
verbose
public boolean verbose
-
-
Constructor Detail
-
PKIClient
public PKIClient(ClientConfig config) throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
-
PKIClient
public PKIClient(ClientConfig config, CryptoProvider crypto) throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
-
-
Method Detail
-
createProxy
public <T> T createProxy(java.lang.String subsystem, java.lang.Class<T> clazz) throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
-
getSubsystem
public java.lang.String getSubsystem()
-
getEntity
public <T> T getEntity(javax.ws.rs.core.Response response, java.lang.Class<T> clazz)
-
getEntity
public <T> T getEntity(javax.ws.rs.core.Response response, javax.ws.rs.core.GenericType<T> clazz)
-
getConfig
public ClientConfig getConfig()
-
getCrypto
public CryptoProvider getCrypto()
-
setCrypto
public void setCrypto(CryptoProvider crypto)
-
getConnection
public PKIConnection getConnection()
-
isVerbose
public boolean isVerbose()
-
setVerbose
public void setVerbose(boolean verbose)
-
downloadCACertChain
public byte[] downloadCACertChain(java.lang.String serverURI) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
- Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
-
downloadCACertChain
public byte[] downloadCACertChain(java.lang.String uri, java.lang.String servletPath) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
- Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
-
addRejectedCertStatus
public void addRejectedCertStatus(java.lang.Integer rejectedCertStatus)
-
setRejectedCertStatuses
public void setRejectedCertStatuses(java.util.Collection<java.lang.Integer> rejectedCertStatuses)
-
isRejected
public boolean isRejected(java.lang.Integer certStatus)
-
addIgnoredCertStatus
public void addIgnoredCertStatus(java.lang.Integer ignoredCertStatus)
-
setIgnoredCertStatuses
public void setIgnoredCertStatuses(java.util.Collection<java.lang.Integer> ignoredCertStatuses)
-
isIgnored
public boolean isIgnored(java.lang.Integer certStatus)
-
-