편집

다음을 통해 공유


SecTrust Class

Definition

A trust level. A trust object combines a certificate with a policy or policies.

public class SecTrust : IDisposable, ObjCRuntime.INativeObject
type SecTrust = class
    interface INativeObject
    interface IDisposable
Inheritance
SecTrust
Implements

Constructors

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.

Properties

Count

Return the number of certificates used for evaluation.

Handle

Handle (pointer) to the unmanaged object representation.

Item[nint]

Get one of the certificate used to evaluate the trust.

NetworkFetchAllowed

Methods

Dispose()

Releases the resources used by the SecTrust object.

Dispose(Boolean)

Releases the resources used by the SecTrust object.

Evaluate()

Evaluate the trust of the certificate using the policy.

Evaluate(NSError)
Finalize()

Finalizer for the SecTrust object

GetCustomAnchorCertificates()
GetExceptions()
GetPolicies()
GetPublicKey()

Get the public key of the evaluated certificate.

GetResult()
GetTrustResult()
GetTypeID()

Type identifier for the Security.SecTrust type.

GetVerifyTime()

Get the verification time.

SetAnchorCertificates(SecCertificate[])
SetAnchorCertificates(X509Certificate2Collection)

Provide your own collection of trusted certificate for the evaluation.

SetAnchorCertificates(X509CertificateCollection)

Provide your own collection of trusted certificate for the evaluation.

SetAnchorCertificatesOnly(Boolean)

Specify if only the supplied anchor certificates should be used.

SetExceptions(NSData)
SetOCSPResponse(IEnumerable<NSData>)
SetOCSPResponse(NSArray)
SetOCSPResponse(NSData)
SetPolicies(IEnumerable<SecPolicy>)
SetPolicies(NSArray)
SetPolicy(SecPolicy)
SetSignedCertificateTimestamps(IEnumerable<NSData>)
SetSignedCertificateTimestamps(NSArray<NSData>)
SetVerifyDate(DateTime)

Set the date at which the trust is to be evaluated.

Applies to