Global Variable

kSecSharedPassword

A dictionary key whose value is the shared password.

Declaration

const CFStringRef kSecSharedPassword;

Discussion

The dictionary returned by the SecRequestSharedWebCredential function includes this key to provide you with the password.

You can also access the server’s URL and the user name from this dictionary. To access the server, use the kSecAttrServer constant. To access the user name, use the kSecAttrAccount constant. These constants are part of the Keychain Services API, and in particular are listed among the Item Attribute Keys and Values.

See Also

Password Sharing

SecAddSharedWebCredential

Asynchronously stores (or updates) a shared password for a website.

SecRequestSharedWebCredential

Asynchronously obtains one or more shared passwords for a website.

SecCreateSharedWebCredentialPassword

Returns a randomly generated password.