DpsCertificatesClient Interface

public interface DpsCertificatesClient

An instance of this class provides access to all the operations defined in DpsCertificatesClient.

Method Summary

Modifier and Type Method and Description
abstract CertificateResponseInner createOrUpdate(String resourceGroupName, String provisioningServiceName, String certificateName, CertificateBodyDescription certificateDescription)

Add new certificate or update an existing certificate.

abstract Response<CertificateResponseInner> createOrUpdateWithResponse(String resourceGroupName, String provisioningServiceName, String certificateName, CertificateBodyDescription certificateDescription, String ifMatch, Context context)

Add new certificate or update an existing certificate.

abstract void delete(String resourceGroupName, String ifMatch, String provisioningServiceName, String certificateName)

Deletes the specified certificate associated with the Provisioning Service.

abstract Response<Void> deleteWithResponse(String resourceGroupName, String ifMatch, String provisioningServiceName, String certificateName, String certificateName1, byte[] certificateRawBytes, Boolean certificateIsVerified, CertificatePurpose certificatePurpose, OffsetDateTime certificateCreated, OffsetDateTime certificateLastUpdated, Boolean certificateHasPrivateKey, String certificateNonce, Context context)

Deletes the specified certificate associated with the Provisioning Service.

abstract VerificationCodeResponseInner generateVerificationCode(String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName)

Generate verification code for Proof of Possession.

abstract Response<VerificationCodeResponseInner> generateVerificationCodeWithResponse(String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName, String certificateName1, byte[] certificateRawBytes, Boolean certificateIsVerified, CertificatePurpose certificatePurpose, OffsetDateTime certificateCreated, OffsetDateTime certificateLastUpdated, Boolean certificateHasPrivateKey, String certificateNonce, Context context)

Generate verification code for Proof of Possession.

abstract CertificateResponseInner get(String certificateName, String resourceGroupName, String provisioningServiceName)

Get the certificate from the provisioning service.

abstract Response<CertificateResponseInner> getWithResponse(String certificateName, String resourceGroupName, String provisioningServiceName, String ifMatch, Context context)

Get the certificate from the provisioning service.

abstract CertificateListDescriptionInner list(String resourceGroupName, String provisioningServiceName)

Get all the certificates tied to the provisioning service.

abstract Response<CertificateListDescriptionInner> listWithResponse(String resourceGroupName, String provisioningServiceName, Context context)

Get all the certificates tied to the provisioning service.

abstract CertificateResponseInner verifyCertificate(String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName, VerificationCodeRequest request)

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate.

abstract Response<CertificateResponseInner> verifyCertificateWithResponse(String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName, VerificationCodeRequest request, String certificateName1, byte[] certificateRawBytes, Boolean certificateIsVerified, CertificatePurpose certificatePurpose, OffsetDateTime certificateCreated, OffsetDateTime certificateLastUpdated, Boolean certificateHasPrivateKey, String certificateNonce, Context context)

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate.

Method Details

createOrUpdate

public abstract CertificateResponseInner createOrUpdate(String resourceGroupName, String provisioningServiceName, String certificateName, CertificateBodyDescription certificateDescription)

Add new certificate or update an existing certificate.

Parameters:

resourceGroupName - Resource group identifier.
provisioningServiceName - The name of the provisioning service.
certificateName - The name of the certificate create or update.
certificateDescription - The certificate body.

Returns:

the X509 Certificate.

createOrUpdateWithResponse

public abstract Response createOrUpdateWithResponse(String resourceGroupName, String provisioningServiceName, String certificateName, CertificateBodyDescription certificateDescription, String ifMatch, Context context)

Add new certificate or update an existing certificate.

Parameters:

resourceGroupName - Resource group identifier.
provisioningServiceName - The name of the provisioning service.
certificateName - The name of the certificate create or update.
certificateDescription - The certificate body.
ifMatch - ETag of the certificate. This is required to update an existing certificate, and ignored while creating a brand new certificate.
context - The context to associate with this operation.

Returns:

the X509 Certificate.

delete

public abstract void delete(String resourceGroupName, String ifMatch, String provisioningServiceName, String certificateName)

Deletes the specified certificate associated with the Provisioning Service.

Parameters:

resourceGroupName - Resource group identifier.
ifMatch - ETag of the certificate.
provisioningServiceName - The name of the provisioning service.
certificateName - This is a mandatory field, and is the logical name of the certificate that the provisioning service will access by.

deleteWithResponse

public abstract Response deleteWithResponse(String resourceGroupName, String ifMatch, String provisioningServiceName, String certificateName, String certificateName1, byte[] certificateRawBytes, Boolean certificateIsVerified, CertificatePurpose certificatePurpose, OffsetDateTime certificateCreated, OffsetDateTime certificateLastUpdated, Boolean certificateHasPrivateKey, String certificateNonce, Context context)

Deletes the specified certificate associated with the Provisioning Service.

Parameters:

resourceGroupName - Resource group identifier.
ifMatch - ETag of the certificate.
provisioningServiceName - The name of the provisioning service.
certificateName - This is a mandatory field, and is the logical name of the certificate that the provisioning service will access by.
certificateName1 - This is optional, and it is the Common Name of the certificate.
certificateRawBytes - Raw data within the certificate.
certificateIsVerified - Indicates if certificate has been verified by owner of the private key.
certificatePurpose - A description that mentions the purpose of the certificate.
certificateCreated - Time the certificate is created.
certificateLastUpdated - Time the certificate is last updated.
certificateHasPrivateKey - Indicates if the certificate contains a private key.
certificateNonce - Random number generated to indicate Proof of Possession.
context - The context to associate with this operation.

Returns:

the response.

generateVerificationCode

public abstract VerificationCodeResponseInner generateVerificationCode(String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName)

Generate verification code for Proof of Possession.

Parameters:

certificateName - The mandatory logical name of the certificate, that the provisioning service uses to access.
ifMatch - ETag of the certificate. This is required to update an existing certificate, and ignored while creating a brand new certificate.
resourceGroupName - name of resource group.
provisioningServiceName - Name of provisioning service.

Returns:

description of the response of the verification code.

generateVerificationCodeWithResponse

public abstract Response generateVerificationCodeWithResponse(String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName, String certificateName1, byte[] certificateRawBytes, Boolean certificateIsVerified, CertificatePurpose certificatePurpose, OffsetDateTime certificateCreated, OffsetDateTime certificateLastUpdated, Boolean certificateHasPrivateKey, String certificateNonce, Context context)

Generate verification code for Proof of Possession.

Parameters:

certificateName - The mandatory logical name of the certificate, that the provisioning service uses to access.
ifMatch - ETag of the certificate. This is required to update an existing certificate, and ignored while creating a brand new certificate.
resourceGroupName - name of resource group.
provisioningServiceName - Name of provisioning service.
certificateName1 - Common Name for the certificate.
certificateRawBytes - Raw data of certificate.
certificateIsVerified - Indicates if the certificate has been verified by owner of the private key.
certificatePurpose - Description mentioning the purpose of the certificate.
certificateCreated - Certificate creation time.
certificateLastUpdated - Certificate last updated time.
certificateHasPrivateKey - Indicates if the certificate contains private key.
certificateNonce - Random number generated to indicate Proof of Possession.
context - The context to associate with this operation.

Returns:

description of the response of the verification code.

get

public abstract CertificateResponseInner get(String certificateName, String resourceGroupName, String provisioningServiceName)

Get the certificate from the provisioning service.

Parameters:

certificateName - Name of the certificate to retrieve.
resourceGroupName - Resource group identifier.
provisioningServiceName - Name of the provisioning service the certificate is associated with.

Returns:

the certificate from the provisioning service.

getWithResponse

public abstract Response getWithResponse(String certificateName, String resourceGroupName, String provisioningServiceName, String ifMatch, Context context)

Get the certificate from the provisioning service.

Parameters:

certificateName - Name of the certificate to retrieve.
resourceGroupName - Resource group identifier.
provisioningServiceName - Name of the provisioning service the certificate is associated with.
ifMatch - ETag of the certificate.
context - The context to associate with this operation.

Returns:

the certificate from the provisioning service.

list

public abstract CertificateListDescriptionInner list(String resourceGroupName, String provisioningServiceName)

Get all the certificates tied to the provisioning service.

Parameters:

resourceGroupName - Name of resource group.
provisioningServiceName - Name of provisioning service to retrieve certificates for.

Returns:

all the certificates tied to the provisioning service.

listWithResponse

public abstract Response listWithResponse(String resourceGroupName, String provisioningServiceName, Context context)

Get all the certificates tied to the provisioning service.

Parameters:

resourceGroupName - Name of resource group.
provisioningServiceName - Name of provisioning service to retrieve certificates for.
context - The context to associate with this operation.

Returns:

all the certificates tied to the provisioning service.

verifyCertificate

public abstract CertificateResponseInner verifyCertificate(String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName, VerificationCodeRequest request)

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate.

Parameters:

certificateName - The mandatory logical name of the certificate, that the provisioning service uses to access.
ifMatch - ETag of the certificate.
resourceGroupName - Resource group name.
provisioningServiceName - Provisioning service name.
request - The name of the certificate.

Returns:

the X509 Certificate.

verifyCertificateWithResponse

public abstract Response verifyCertificateWithResponse(String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName, VerificationCodeRequest request, String certificateName1, byte[] certificateRawBytes, Boolean certificateIsVerified, CertificatePurpose certificatePurpose, OffsetDateTime certificateCreated, OffsetDateTime certificateLastUpdated, Boolean certificateHasPrivateKey, String certificateNonce, Context context)

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate.

Parameters:

certificateName - The mandatory logical name of the certificate, that the provisioning service uses to access.
ifMatch - ETag of the certificate.
resourceGroupName - Resource group name.
provisioningServiceName - Provisioning service name.
request - The name of the certificate.
certificateName1 - Common Name for the certificate.
certificateRawBytes - Raw data of certificate.
certificateIsVerified - Indicates if the certificate has been verified by owner of the private key.
certificatePurpose - Describe the purpose of the certificate.
certificateCreated - Certificate creation time.
certificateLastUpdated - Certificate last updated time.
certificateHasPrivateKey - Indicates if the certificate contains private key.
certificateNonce - Random number generated to indicate Proof of Possession.
context - The context to associate with this operation.

Returns:

the X509 Certificate.

Applies to