Package com.netscape.certsrv.client
Class PKIConnection
- java.lang.Object
-
- com.netscape.certsrv.client.PKIConnection
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class PKIConnection extends java.lang.Object implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description PKIConnection(ClientConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.io.File
getOutput()
void
setCallback(org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback)
void
setOutput(java.io.File output)
void
storeEntity(java.io.OutputStream out, org.apache.http.HttpEntity entity)
void
storeRequest(java.io.PrintStream out, org.apache.http.HttpRequest request)
void
storeResponse(java.io.PrintStream out, org.apache.http.HttpResponse response)
javax.ws.rs.client.WebTarget
target(java.lang.String path)
-
-
-
Constructor Detail
-
PKIConnection
public PKIConnection(ClientConfig config) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
setCallback
public void setCallback(org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback)
-
storeRequest
public void storeRequest(java.io.PrintStream out, org.apache.http.HttpRequest request) throws java.io.IOException
- Throws:
java.io.IOException
-
storeResponse
public void storeResponse(java.io.PrintStream out, org.apache.http.HttpResponse response) throws java.io.IOException
- Throws:
java.io.IOException
-
storeEntity
public void storeEntity(java.io.OutputStream out, org.apache.http.HttpEntity entity) throws java.io.IOException
- Throws:
java.io.IOException
-
target
public javax.ws.rs.client.WebTarget target(java.lang.String path)
-
getOutput
public java.io.File getOutput()
-
setOutput
public void setOutput(java.io.File output)
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-