Udostępnij za pośrednictwem


X509Attestation.CreateFromClientCertificates Method

Definition

Overloads

CreateFromClientCertificates(X509Certificate2)

Factory from ClientCertificates with primary certificate.

CreateFromClientCertificates(String)

Factory from ClientCertificates with primary certificate.

CreateFromClientCertificates(X509Certificate2, X509Certificate2)

Factory from ClientCertificates with primary and secondary certificates.

CreateFromClientCertificates(String, String)

Factory from ClientCertificates with primary and secondary certificates.

CreateFromClientCertificates(X509Certificate2)

Factory from ClientCertificates with primary certificate.

public static Microsoft.Azure.Devices.Provisioning.Service.X509Attestation CreateFromClientCertificates (System.Security.Cryptography.X509Certificates.X509Certificate2 primary);
static member CreateFromClientCertificates : System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.Azure.Devices.Provisioning.Service.X509Attestation
Public Shared Function CreateFromClientCertificates (primary As X509Certificate2) As X509Attestation

Parameters

primary
X509Certificate2

The X509Certificate2 with the primary certificate. It cannot be null.

Returns

The new instance of the X509Attestation.

Exceptions

if the primary certificate is null.

If the primary is null.

If the provided primary certificate is invalid.

Remarks

Creates a new instance of the X509Attestation with the primary certificate in X509Certificate2 object.

Applies to

CreateFromClientCertificates(String)

Factory from ClientCertificates with primary certificate.

public static Microsoft.Azure.Devices.Provisioning.Service.X509Attestation CreateFromClientCertificates (string primary);
static member CreateFromClientCertificates : string -> Microsoft.Azure.Devices.Provisioning.Service.X509Attestation
Public Shared Function CreateFromClientCertificates (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 certificate in a Base64 string.

Applies to

CreateFromClientCertificates(X509Certificate2, X509Certificate2)

Factory from ClientCertificates with primary and secondary certificates.

public static Microsoft.Azure.Devices.Provisioning.Service.X509Attestation CreateFromClientCertificates (System.Security.Cryptography.X509Certificates.X509Certificate2 primary, System.Security.Cryptography.X509Certificates.X509Certificate2 secondary);
static member CreateFromClientCertificates : System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.Azure.Devices.Provisioning.Service.X509Attestation
Public Shared Function CreateFromClientCertificates (primary As X509Certificate2, secondary As X509Certificate2) As X509Attestation

Parameters

primary
X509Certificate2

The X509Certificate2 with the primary certificate. It cannot be null.

secondary
X509Certificate2

The X509Certificate2 with the secondary certificate. It can be null (ignored).

Returns

The new instance of the X509Attestation.

Exceptions

if the primary certificate is null.

If the primary is null.

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 certificates in X509Certificate2 objects.

Applies to

CreateFromClientCertificates(String, String)

Factory from ClientCertificates with primary and secondary certificates.

public static Microsoft.Azure.Devices.Provisioning.Service.X509Attestation CreateFromClientCertificates (string primary, string secondary);
static member CreateFromClientCertificates : string * string -> Microsoft.Azure.Devices.Provisioning.Service.X509Attestation
Public Shared Function CreateFromClientCertificates (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 primary certificate is invalid.

Remarks

Creates a new instance of the X509Attestation with the primary and secondary certificates in a Base64 string.

Applies to