Instance Method

initWithCertificate:objectID:

Initializes a token keychain certificate with data from the specified certificate reference and a given object ID.

Declaration

- (instancetype)initWithCertificate:(SecCertificateRef)certificateRef objectID:(TKTokenObjectID)objectID;

Parameters

certificateRef

The certificate reference.

You can create a SecCertificateRef value from a data object using the SecCertificateCreateWithData function.

objectID

The object ID.

Return Value

A new token keychain certificate.

Discussion

This is the designated initializer.