Share via


SecCertificate Class

Definition

Represents digital certificates on iOS/OSX.

public class SecCertificate : CoreFoundation.NativeObject
type SecCertificate = class
    inherit NativeObject
Inheritance

Constructors

Name Description
SecCertificate(Byte[])

Initialize this instance from a raw, DER-encoded, X.509 certificate byte array

SecCertificate(NSData)

Initialize this instance from an NSData buffer containing a, DER-encoded, X.509 certificate.

SecCertificate(X509Certificate)

Initialize this instance from an existing X509Certificate instance.

SecCertificate(X509Certificate2)

Initialize this instance from an existing X509Certificate2 instance.

Properties

Name Description
DerData

Returns a Distinguished Encoding Rules (DER) representation of the certificate.

Handle (Inherited from DisposableObject)
NotValidAfterDate

Get the date when this certificate is no longer valid.

NotValidBeforeDate

Get the date when this certificate becomes valid.

Owns (Inherited from DisposableObject)
SubjectSummary

Human readable summary of the certificate.

Methods

Name Description
ClearHandle() (Inherited from DisposableObject)
Dispose() (Inherited from DisposableObject)
Dispose(Boolean) (Inherited from NativeObject)
Equals(Object) (Inherited from DisposableObject)
GetCheckedHandle() (Inherited from DisposableObject)
GetCommonName()
GetEmailAddresses()
GetHashCode() (Inherited from DisposableObject)
GetKey()
GetNormalizedIssuerSequence()
GetNormalizedSubjectSequence()
GetPublicKey()
GetSerialNumber()

Developers should not use this deprecated method. Developers should use 'GetSerialNumber(out NSError)' instead.

GetSerialNumber(NSError)
GetTypeID()

Type identifier for the Security.SecCertificate type.

InitializeHandle(NativeHandle) (Inherited from DisposableObject)
Release() (Inherited from NativeObject)
Retain() (Inherited from NativeObject)
ToX509Certificate()
ToX509Certificate2()

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to