Structure

SecIdentityRef

An abstract Core Foundation-type object representing an identity.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
typedef struct __SecIdentity SecIdentityRef;
macOS
typedef struct __SecIdentity *SecIdentityRef;

Overview

A SecIdentityRef object contains a SecKeyRef object and an associated SecCertificateRef object.

See Also

Essentials

Creating an Identity

Create an identity from a certificate and private key.

Storing an Identity in the Keychain

Securely store an identity in the keychain.

SecIdentityCreateWithCertificate

Creates a new identity for a certificate and its associated private key.

SecIdentityGetTypeID

Returns the unique identifier of the opaque type to which an identity object belongs.