iOS Guides | Samples

Security.SecCertificate Class

Represents digital certificates on iOS/OSX.

See Also: SecCertificate

Syntax

public class SecCertificate : INativeObject, IDisposable

Remarks

Requirements

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

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

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

Public Methods

Dispose()
Releases the resources used by the SecCertificate object.
Finalize()
Finalizer for the SecCertificate object
GetCommonName() : String
GetEmailAddresses() : String[]
GetNormalizedIssuerSequence() : NSData
GetNormalizedSubjectSequence() : NSData
GetPublicKey() : SecKey
GetSerialNumber() : NSData
static
GetTypeID() : nint
Type identifier for the Security.SecCertificate type.
ToX509Certificate() : X509Certificate
ToX509Certificate2() : X509Certificate2

Protected Methods

Dispose(Boolean)
Releases the resources used by the SecCertificate object.