Language

SecIdentity Class

Definition

Encapsulate a security identity. A security identity comprises a certificate and its private key.

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

Properties

Name Description
Certificate
Handle (Inherited from DisposableObject)
Owns (Inherited from DisposableObject)
PrivateKey

Gets the private key associated with this identity.

Methods

Name Description
ClearHandle() (Inherited from DisposableObject)
Create(SecCertificate, SecKey)

Create a SecIdentity instance from a certificate and a private key.

Dispose()

Releases all resources used by this object.

(Inherited from DisposableObject)
Dispose(Boolean)

Releases the resources used by this object.

(Inherited from NativeObject)
Equals(Object) (Inherited from DisposableObject)
GetCheckedHandle() (Inherited from DisposableObject)
GetHashCode() (Inherited from DisposableObject)
GetTypeID()

Type identifier for the Security.SecIdentity type.

Import(Byte[], String)

Create a SecIdentity from PKCS #12 data.

Import(X509Certificate2)
InitializeHandle(NativeHandle) (Inherited from DisposableObject)
Release() (Inherited from NativeObject)
Retain() (Inherited from NativeObject)

Extension Methods

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

Applies to