Compartir a través de


DpsCertificates Interface

public interface DpsCertificates

Resource collection API of DpsCertificates.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new CertificateResponse resource.

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

Deletes the specified certificate associated with the Provisioning Service.

abstract void deleteById(String id)

Deletes the specified certificate associated with the Provisioning Service.

abstract Response<Void> deleteByIdWithResponse(String id, String ifMatch, 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 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 VerificationCodeResponse generateVerificationCode(String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName)

Generate verification code for Proof of Possession.

abstract Response<VerificationCodeResponse> 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 CertificateResponse get(String certificateName, String resourceGroupName, String provisioningServiceName)

Get the certificate from the provisioning service.

abstract CertificateResponse getById(String id)

Get the certificate from the provisioning service.

abstract Response<CertificateResponse> getByIdWithResponse(String id, String ifMatch, Context context)

Get the certificate from the provisioning service.

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

Get the certificate from the provisioning service.

abstract CertificateListDescription list(String resourceGroupName, String provisioningServiceName)

Get all the certificates tied to the provisioning service.

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

Get all the certificates tied to the provisioning service.

abstract CertificateResponse 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<CertificateResponse> 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

define

public abstract CertificateResponse.DefinitionStages.Blank define(String name)

Begins definition for a new CertificateResponse resource.

Parameters:

name - resource name.

Returns:

the first stage of the new CertificateResponse definition.

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.

deleteById

public abstract void deleteById(String id)

Deletes the specified certificate associated with the Provisioning Service.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract Response deleteByIdWithResponse(String id, String ifMatch, 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:

id - the resource ID.
ifMatch - ETag of the certificate.
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.

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 VerificationCodeResponse 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 CertificateResponse 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.

getById

public abstract CertificateResponse getById(String id)

Get the certificate from the provisioning service.

Parameters:

id - the resource ID.

Returns:

the certificate from the provisioning service.

getByIdWithResponse

public abstract Response getByIdWithResponse(String id, String ifMatch, Context context)

Get the certificate from the provisioning service.

Parameters:

id - the resource ID.
ifMatch - ETag of the certificate.
context - The context to associate with this operation.

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 CertificateListDescription 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 CertificateResponse 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