Contents

certificate(for:)

Returns a certificate from the keychain with the object identifier you specify.

Declaration

func certificate(for objectID: TKToken.ObjectID) throws -> TKTokenKeychainCertificate

Parameters

  • objectID:

    The identifier for the certificate within the keychain.

Return Value

The certificate that the keychain stores.

Discussion

If the certificate the objectID specifies isn’t found, the system fills error with TKError.Code.objectNotFound.

See Also

Retrieving Keys and Certificates