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.Loggerlogger
-
Constructor Summary
Constructors Constructor Description PKIConnection(ClientConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.io.FilegetOutput()voidsetCallback(org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback)voidsetOutput(java.io.File output)voidstoreEntity(java.io.OutputStream out, org.apache.http.HttpEntity entity)voidstoreRequest(java.io.PrintStream out, org.apache.http.HttpRequest request)voidstoreResponse(java.io.PrintStream out, org.apache.http.HttpResponse response)javax.ws.rs.client.WebTargettarget(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:
closein interfacejava.lang.AutoCloseable
-
-