iOS Guides | Samples

Security.SecCertificate Class

Represents digital certificates on iOS/OSX.

See Also: SecCertificate


public class SecCertificate : INativeObject, IDisposable



Namespace: Security
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions:

The members of Security.SecCertificate are listed below.

See Also: Object

Public Constructors

Initialize this instance from an NSData buffer containing a, DER-encoded, X.509 certificate.
Initialize this instance from a raw, DER-encoded, X.509 certificate byte array
Initialize this instance from an existing X509Certificate instance.
Initialize this instance from an existing X509Certificate2 instance.

Public Properties

DerDataNSData. Returns a Distinguished Encoding Rules (DER) representation of the certificate.
HandleIntPtr. Handle (pointer) to the unmanaged object representation.
SubjectSummaryString. Human readable summary of the certificate.

Public Methods

Releases the resources used by the SecCertificate object.
Finalizer for the SecCertificate object
GetCommonName() : String
GetEmailAddresses() : String[]
GetNormalizedIssuerSequence() : NSData
GetNormalizedSubjectSequence() : NSData
GetPublicKey() : SecKey
GetSerialNumber() : NSData
Developers should not use this deprecated method. Developers should use 'GetSerialNumber(out NSError)' instead.
GetSerialNumber(out NSError) : NSData
GetTypeID() : nint
Type identifier for the Security.SecCertificate type.
ToX509Certificate() : X509Certificate
ToX509Certificate2() : X509Certificate2

Protected Methods

Releases the resources used by the SecCertificate object.