Compartir a través de


DeviceProvisioningServicesCertificateResource.VerifyCertificateAsync Método

Definición

Sobrecargas

VerifyCertificateAsync(DeviceProvisioningServicesCertificateResourceVerifyCertificateOptions, CancellationToken)

Comprueba la posesión de la clave privada del certificado proporcionando el certificado hoja emitido por el certificado previamente cargado.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/verify
  • IdDpsCertificate_VerifyCertificate de operaciones
VerifyCertificateAsync(String, CertificateVerificationCodeContent, String, Byte[], Nullable<Boolean>, Nullable<DeviceProvisioningServicesCertificatePurpose>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, CancellationToken)

Comprueba la posesión de la clave privada del certificado proporcionando el certificado hoja emitido por el certificado previamente cargado.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/verify
  • IdDpsCertificate_VerifyCertificate de operaciones

VerifyCertificateAsync(DeviceProvisioningServicesCertificateResourceVerifyCertificateOptions, CancellationToken)

Comprueba la posesión de la clave privada del certificado proporcionando el certificado hoja emitido por el certificado previamente cargado.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/verify
  • IdDpsCertificate_VerifyCertificate de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceProvisioningServices.DeviceProvisioningServicesCertificateResource>> VerifyCertificateAsync (Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesCertificateResourceVerifyCertificateOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member VerifyCertificateAsync : Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesCertificateResourceVerifyCertificateOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceProvisioningServices.DeviceProvisioningServicesCertificateResource>>
override this.VerifyCertificateAsync : Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesCertificateResourceVerifyCertificateOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceProvisioningServices.DeviceProvisioningServicesCertificateResource>>
Public Overridable Function VerifyCertificateAsync (options As DeviceProvisioningServicesCertificateResourceVerifyCertificateOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DeviceProvisioningServicesCertificateResource))

Parámetros

options
DeviceProvisioningServicesCertificateResourceVerifyCertificateOptions

Contenedor de propiedades que contiene todos los parámetros de este método, excepto el calificador LRO y el parámetro de contexto de solicitud.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

options es null.

Se aplica a

VerifyCertificateAsync(String, CertificateVerificationCodeContent, String, Byte[], Nullable<Boolean>, Nullable<DeviceProvisioningServicesCertificatePurpose>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, CancellationToken)

Comprueba la posesión de la clave privada del certificado proporcionando el certificado hoja emitido por el certificado previamente cargado.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/verify
  • IdDpsCertificate_VerifyCertificate de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceProvisioningServices.DeviceProvisioningServicesCertificateResource>> VerifyCertificateAsync (string ifMatch, Azure.ResourceManager.DeviceProvisioningServices.Models.CertificateVerificationCodeContent content, string certificateCommonName = default, byte[] certificateRawBytes = default, bool? certificateIsVerified = default, Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesCertificatePurpose? certificatePurpose = default, DateTimeOffset? certificateCreatedOn = default, DateTimeOffset? certificateLastUpdatedOn = default, bool? certificateHasPrivateKey = default, string certificateNonce = default, System.Threading.CancellationToken cancellationToken = default);
abstract member VerifyCertificateAsync : string * Azure.ResourceManager.DeviceProvisioningServices.Models.CertificateVerificationCodeContent * string * byte[] * Nullable<bool> * Nullable<Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesCertificatePurpose> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<bool> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceProvisioningServices.DeviceProvisioningServicesCertificateResource>>
override this.VerifyCertificateAsync : string * Azure.ResourceManager.DeviceProvisioningServices.Models.CertificateVerificationCodeContent * string * byte[] * Nullable<bool> * Nullable<Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesCertificatePurpose> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<bool> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceProvisioningServices.DeviceProvisioningServicesCertificateResource>>
Public Overridable Function VerifyCertificateAsync (ifMatch As String, content As CertificateVerificationCodeContent, Optional certificateCommonName As String = Nothing, Optional certificateRawBytes As Byte() = Nothing, Optional certificateIsVerified As Nullable(Of Boolean) = Nothing, Optional certificatePurpose As Nullable(Of DeviceProvisioningServicesCertificatePurpose) = Nothing, Optional certificateCreatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional certificateLastUpdatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional certificateHasPrivateKey As Nullable(Of Boolean) = Nothing, Optional certificateNonce As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DeviceProvisioningServicesCertificateResource))

Parámetros

ifMatch
String

ETag del certificado.

content
CertificateVerificationCodeContent

Nombre del certificado.

certificateCommonName
String

Nombre común del certificado.

certificateRawBytes
Byte[]

Datos sin procesar del certificado.

certificateIsVerified
Nullable<Boolean>

Indica si el propietario de la clave privada ha comprobado el certificado.

certificatePurpose
Nullable<DeviceProvisioningServicesCertificatePurpose>

Describir el propósito del certificado.

certificateCreatedOn
Nullable<DateTimeOffset>

Hora de creación del certificado.

certificateLastUpdatedOn
Nullable<DateTimeOffset>

Hora de la última actualización del certificado.

certificateHasPrivateKey
Nullable<Boolean>

Indica si el certificado contiene una clave privada.

certificateNonce
String

Número aleatorio generado para indicar la prueba de posesión.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

ifMatch o content es null.

Se aplica a