Share via


X509Attestation.CreateFromRootCertificates Method

Definition

Overloads

CreateFromRootCertificates(X509Certificate2)

Factory from RootCertificates with primary certificate.

CreateFromRootCertificates(String)

Factory from RootCertificates with primary certificate.

CreateFromRootCertificates(X509Certificate2, X509Certificate2)

Factory from RootCertificates with primary and secondary certificates.

CreateFromRootCertificates(String, String)

Factory from RootCertificates with primary and secondary certificates.

CreateFromRootCertificates(X509Certificate2)

Factory from RootCertificates with primary certificate.

public static Microsoft.Azure.Devices.Provisioning.Service.X509Attestation CreateFromRootCertificates (System.Security.Cryptography.X509Certificates.X509Certificate2 primary);
static member CreateFromRootCertificates : System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.Azure.Devices.Provisioning.Service.X509Attestation
Public Shared Function CreateFromRootCertificates (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 objects.

Applies to

CreateFromRootCertificates(String)

Factory from RootCertificates with primary certificate.

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

Applies to

CreateFromRootCertificates(X509Certificate2, X509Certificate2)

Factory from RootCertificates with primary and secondary certificates.

public static Microsoft.Azure.Devices.Provisioning.Service.X509Attestation CreateFromRootCertificates (System.Security.Cryptography.X509Certificates.X509Certificate2 primary, System.Security.Cryptography.X509Certificates.X509Certificate2 secondary);
static member CreateFromRootCertificates : System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.Azure.Devices.Provisioning.Service.X509Attestation
Public Shared Function CreateFromRootCertificates (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

CreateFromRootCertificates(String, String)

Factory from RootCertificates with primary and secondary certificates.

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

Remarks

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

Applies to