Mac Guides | Samples

MonoMac.Security.SecTrust Class

See Also: SecTrust

Syntax

public class SecTrust : INativeObject, IDisposable

Requirements

Namespace: MonoMac.Security
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.Security.SecTrust are listed below.

See Also: Object

Public Constructors

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

Public Properties

[read-only]
CountInt32. Return the number of certificates used for evaluation.
[read-only]
HandleIntPtr. Handle (pointer) to the unmanaged object representation.
[read-only]
default property
Item(Int32)SecCertificate. Get one of the certificate used to evaluate the trust.

Public Methods

Dispose()
Releases the resourced used by the SecTrust object.
Evaluate() : SecTrustResult
Evaluate the trust of the certificate using the policy.
Finalize()
Finalizer for the SecTrust object
GetExceptions() : NSData
GetPublicKey() : SecKey
Get the public key of the evaluated certificate.
static
GetTypeID() : Int32
GetVerifyTime() : Double
Get the verification time.
SetAnchorCertificates(X509Certificate2Collection) : SecStatusCode
Provide your own collection of trusted certificate for the evaluation.
SetAnchorCertificates(X509CertificateCollection) : SecStatusCode
Provide your own collection of trusted certificate for the evaluation.
SetAnchorCertificatesOnly(Boolean) : SecStatusCode
Specify if only the supplied anchor certificates should be used.
SetExceptions(NSData) : Boolean
SetVerifyDate(DateTime) : SecStatusCode
Set the date at which the trust is to be evaluated.

Protected Methods

Dispose(Boolean)
Releases the resourced used by the SecTrust object.