Package org.xipki.scep.client
Class ScepClient
- java.lang.Object
-
- org.xipki.scep.client.Client
-
- org.xipki.scep.client.ScepClient
-
public class ScepClient extends Client
A concrete SCEP client.- Author:
- Lijun Liao (xipki)
-
-
Field Summary
-
Fields inherited from class org.xipki.scep.client.Client
caCaps, caId, DEFAULT_SIGNINGTIME_BIAS, REQ_CONTENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ScepClient(CaIdentifier caId, CaCertValidator caCertValidator)ScepClient(CaIdentifier caId, CaCertValidator caCertValidator, org.xipki.util.Curl curl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ScepHttpResponsehttpGet(String url)Send request via HTTP GET.protected ScepHttpResponsehttpPost(String url, String requestContentType, byte[] request)Send request via HTTP POST.-
Methods inherited from class org.xipki.scep.client.Client
destroy, getAuthorityCertStore, getCaCaps, getCaCert, getCaCertValidator, getCaId, getMaxSigningTimeBiasInMs, init, isHttpGetOnly, refresh, scepCertPoll, scepCertPoll, scepEnrol, scepGetCert, scepGetCrl, scepNextCaCert, scepPkcsReq, scepRenewalReq, setHttpGetOnly, setMaxSigningTimeBiasInMs
-
-
-
-
Constructor Detail
-
ScepClient
public ScepClient(CaIdentifier caId, CaCertValidator caCertValidator)
-
ScepClient
public ScepClient(CaIdentifier caId, CaCertValidator caCertValidator, org.xipki.util.Curl curl)
-
-
Method Detail
-
httpGet
protected ScepHttpResponse httpGet(String url) throws ScepClientException
Description copied from class:ClientSend request via HTTP GET.- Specified by:
httpGetin classClient- Parameters:
url- URL. Must not benull.- Returns:
- the response.
- Throws:
ScepClientException- If error occurs.
-
httpPost
protected ScepHttpResponse httpPost(String url, String requestContentType, byte[] request) throws ScepClientException
Description copied from class:ClientSend request via HTTP POST.- Specified by:
httpPostin classClient- Parameters:
url- SCEP server URL. Must not benull.requestContentType- Content type of the HTTP request. Must not benull.request- HTTP request. Must not benull.- Returns:
- the SCEP response
- Throws:
ScepClientException- If error happens
-
-