Sdílet prostřednictvím


X509Attestation.CreateFromCAReferences Method

Definition

Overloads

CreateFromCAReferences(String)

Factory with CAReferences with primary CA references.

CreateFromCAReferences(String, String)

Factory with CAReferences with primary and secondary CA references.

CreateFromCAReferences(String)

Factory with CAReferences with primary CA references.

public static Microsoft.Azure.Devices.Provisioning.Service.X509Attestation CreateFromCAReferences (string primary);
static member CreateFromCAReferences : string -> Microsoft.Azure.Devices.Provisioning.Service.X509Attestation
Public Shared Function CreateFromCAReferences (primary As String) As X509Attestation

Parameters

primary
String

The string with the primary certificate. It cannot be null or empty.

Returns

The new instance of the X509Attestation.

Exceptions

If the provided primary string is null.

If the provided primary string is empty or white space.

If the provided primary certificate is invalid.

Remarks

Creates a new instance of the X509Attestation with the primary CA reference.

Applies to

CreateFromCAReferences(String, String)

Factory with CAReferences with primary and secondary CA references.

public static Microsoft.Azure.Devices.Provisioning.Service.X509Attestation CreateFromCAReferences (string primary, string secondary);
static member CreateFromCAReferences : string * string -> Microsoft.Azure.Devices.Provisioning.Service.X509Attestation
Public Shared Function CreateFromCAReferences (primary As String, secondary As String) As X509Attestation

Parameters

primary
String

The string with the primary certificate. It cannot be null or empty.

secondary
String

The string with the secondary certificate. It can be null or empty (ignored).

Returns

The new instance of the X509Attestation.

Exceptions

If the provided primary string is null.

If the provided primary string is empty or white space.

If the one of the provided primary or secondary certificate is invalid.

Remarks

Creates a new instance of the X509Attestation with the primary and secondary CA reference.

Applies to