Class ScepClient


  • public class ScepClient
    extends Client
    A concrete SCEP client.
    Author:
    Lijun Liao (xipki)
    • Constructor Detail

      • ScepClient

        public ScepClient​(CaIdentifier caId,
                          CaCertValidator caCertValidator,
                          javax.net.ssl.SSLSocketFactory sslSocketFactory,
                          javax.net.ssl.HostnameVerifier hostnameVerifier)
    • Method Detail

      • httpPost

        protected ScepHttpResponse httpPost​(java.lang.String url,
                                            java.lang.String requestContentType,
                                            byte[] request)
                                     throws ScepClientException
        Description copied from class: Client
        Send request via HTTP POST.
        Specified by:
        httpPost in class Client
        Parameters:
        url - SCEP server URL. Must not be null.
        requestContentType - Content type of the HTTP request. Must not be null.
        request - HTTP request. Must not be null.
        Returns:
        the SCEP response
        Throws:
        ScepClientException - If error happens