SecIdentitySetPreferred(_:_:_:)
Sets the identity that should be preferred for the specified name and key use.
Declaration
func SecIdentitySetPreferred(_ identity: SecIdentity?, _ name: CFString, _ keyUsage: CFArray?) -> OSStatusParameters
- identity:
The identity to set as preferred for the specified name and key usage.
- name:
A string containing an email address (RFC 822) or other name for which a preferred certificate is requested.
- keyUsage:
An array containing a list of usage attributes (Ksecattrcanencrypt, for example), or
NULLif you want this identity to be preferred for any usage. See Attribute Item Keys for a complete list of possible usage attributes.
Return Value
A result code. See Security Framework Result Codes.