public class IotPkiManageClient extends AbstractIotHiskBceClient
HANDLERSconfig, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
IotPkiManageClient(BceClientConfiguration config)
Constructs a new pki client using the client configuration to access hisk pki.
|
createRequest, fillInHeaderAndBody, toJsoncomputeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic IotPkiManageClient(BceClientConfiguration config)
config - The bcc client configuration options controlling how this client
connects to bcc (e.g. proxy settings, retry counts, etc).public CreateRootCACertResponse createRootCACert(CreateRootCACertRequest request, String clientToken)
request - The request object containing all options for creating a root cert.clientToken - A random string to make request idempotent.public void deleteRootCACert(String certId)
certId - The cert ID of the root cert which will be deleted.public GetRootCACertResponse getRootCACert(String certId)
certId - The cert ID of the root cert which will be got.public CreateCertGroupResponse createCertGroup(CreateCertGroupRequest request, String clientToken)
request - The request object containing all options for creating a cert group.clientToken - A random string to make request idempotent.public void deleteCertGroup(String groupId)
groupId - The group ID of the cert group which will be deleted.public GetCertGroupResponse getCertGroup(String groupId)
groupId - The group ID of the cert group which will be got.public CreateSubCertResponse createServerCert(CreateSubCertRequest request, String clientToken)
request - The request object containing all options for creating a server cert.clientToken - A random string to make request idempotent.public void deleteServerCert(String serverCertId)
serverCertId - The server cert ID of the cert which will be deleted.public GetSubCertResponse getServerCert(String serverCertId)
serverCertId - The server cert ID of the cert which will be got.public QueryServerCertResponse queryServerCerts(String rootCACertId, String groupId)
rootCACertId - The root cert ID of server certs which will be queried.groupId - The cert group ID of server certs which will be queried.public RenewSubCertResponse renewServerCert(RenewSubCertRequest request, String serverCertId, String clientToken)
request - The request object containing all options for renewing a server cert.serverCertId - The server cert ID of the cert which will be renewed.clientToken - A random string to make request idempotent.public CreateSubCertResponse createClientCert(CreateSubCertRequest request, String clientToken)
request - The request object containing all options for creating a client cert.clientToken - A random string to make request idempotent.public void deleteClientCert(String clientCertId)
clientCertId - The client cert ID of the cert which will be deleted.public GetSubCertResponse getClientCert(String clientCertId)
clientCertId - The client cert ID of the cert which will be got.public QueryClientCertResponse queryClientCerts(String rootCACertId, String groupId)
rootCACertId - The root cert ID of client certs which will be queried.groupId - The cert group ID of client certs which will be queried.public RenewSubCertResponse renewClientCert(RenewSubCertRequest request, String clientCertId, String clientToken)
request - The request object containing all options for renewing a client cert.clientCertId - The client cert ID of the cert which will be renewed.clientToken - A random string to make request idempotent.public BatchCreateClientCertResponse batchCreateClientCert(BatchCreateClientCertRequest request, String clientToken)
request - The request object containing all options for creating client certs.clientToken - A random string to make request idempotent.public GetBatchCreateStatusResponse getBatchCreateStatus(String jobId)
jobId - The create batch ID.public String downloadClientCert(String clientCertId)
clientCertId - The client cert ID which will be downloaded.public String downloadServerCert(String serverCertId)
serverCertId - The server cert ID which will be downloaded.public String downloadRootCert(String rootCertId)
rootCertId - The root cert ID which will be downloaded.public Map<String,String> downloadBatchCreateCerts(String jobId)
jobId - The create batch ID which will be downloaded.public GetCertStatusResponse getCertStatus(GetCertStatusRequest request)
request - The request object containing all options for creating client certs.public DownloadCrlResponse downloadCrl(String issuerDN)
issuerDN - The root cert DN, can be found in root cert.public GetOcspResponse getOcspResponse(byte[] ocspRequest)
ocspRequest - Standard ocsp request.Copyright © 2022. All rights reserved.