Bearbeiten

Freigeben über


SecTrust Constructors

Definition

Overloads

SecTrust(IntPtr)
SecTrust(SecCertificate, SecPolicy)
SecTrust(X509Certificate, SecPolicy)

Create a new instance based on the certificate, to be evaluated, and a policy, to be applied.

SecTrust(X509Certificate2, SecPolicy)

Create a new instance based on the certificate, to be evaluated, and a policy, to be applied

SecTrust(X509Certificate2Collection, SecPolicy)

Create a new instance based on the certificate, to be evaluated, and a policy, to be applied.

SecTrust(X509CertificateCollection, SecPolicy)

Create a new instance based on the certificate, to be evaluated, and a policy, to be applied.

SecTrust(IntPtr)

public SecTrust (IntPtr handle);
new Security.SecTrust : nativeint -> Security.SecTrust

Parameters

handle
IntPtr

nativeint

Applies to

SecTrust(SecCertificate, SecPolicy)

public SecTrust (Security.SecCertificate certificate, Security.SecPolicy policy);
new Security.SecTrust : Security.SecCertificate * Security.SecPolicy -> Security.SecTrust

Parameters

certificate
SecCertificate
policy
SecPolicy

Applies to

SecTrust(X509Certificate, SecPolicy)

Create a new instance based on the certificate, to be evaluated, and a policy, to be applied.

public SecTrust (System.Security.Cryptography.X509Certificates.X509Certificate certificate, Security.SecPolicy policy);
new Security.SecTrust : System.Security.Cryptography.X509Certificates.X509Certificate * Security.SecPolicy -> Security.SecTrust

Parameters

certificate
X509Certificate

The certificate to be evaluated.

policy
SecPolicy

The policy to be used to evaluate the trust.

Applies to

SecTrust(X509Certificate2, SecPolicy)

Create a new instance based on the certificate, to be evaluated, and a policy, to be applied

public SecTrust (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, Security.SecPolicy policy);
new Security.SecTrust : System.Security.Cryptography.X509Certificates.X509Certificate2 * Security.SecPolicy -> Security.SecTrust

Parameters

certificate
X509Certificate2

The certificate to be evaluated.

policy
SecPolicy

The policy to be used to evaluate the trust.

Applies to

SecTrust(X509Certificate2Collection, SecPolicy)

Create a new instance based on the certificate, to be evaluated, and a policy, to be applied.

public SecTrust (System.Security.Cryptography.X509Certificates.X509Certificate2Collection certificates, Security.SecPolicy policy);
new Security.SecTrust : System.Security.Cryptography.X509Certificates.X509Certificate2Collection * Security.SecPolicy -> Security.SecTrust

Parameters

certificates
X509Certificate2Collection

A collection of X.509 certificates

policy
SecPolicy

The policy to be used to evaluate the trust.

Remarks

The first certificate (in the collection) is the one to be evaluated, the others will be used to build a chain of trust.

Applies to

SecTrust(X509CertificateCollection, SecPolicy)

Create a new instance based on the certificate, to be evaluated, and a policy, to be applied.

public SecTrust (System.Security.Cryptography.X509Certificates.X509CertificateCollection certificates, Security.SecPolicy policy);
new Security.SecTrust : System.Security.Cryptography.X509Certificates.X509CertificateCollection * Security.SecPolicy -> Security.SecTrust

Parameters

certificates
X509CertificateCollection

A collection of X.509 certificates

policy
SecPolicy

The policy to be used to evaluate the trust.

Remarks

The first certificate (in the collection) is the one to be evaluated, the others will be used to build a chain of trust.

Applies to