Global Variable

kSecReturnData

A key whose value is a Boolean indicating whether or not to return item data.

Declaration

let kSecReturnData: CFString

Discussion

The corresponding value is of type CFBoolean. A value of kCFBooleanTrue indicates that the data of an item should be returned in the form of a CFData object.

For keys and password items, data is secret (encrypted) and may require the user to enter a password for access. For key items, the resulting data has the same format as the return value of the function SecKeyCopyExternalRepresentation(_:_:).

See Also

Item Result Keys

let kSecReturnAttributes: CFString

A key whose value is a Boolean indicating whether or not to return item attributes.

let kSecReturnRef: CFString

A key whose value is a Boolean indicating whether or not to return a reference to an item.

let kSecReturnPersistentRef: CFString

A key whose value is a Boolean indicating whether or not to return a persistent reference to an item.