MonoMac.Security.SecKeyChain.FindGenericPassword Method
This method looks up for a generic password in the default keychain (MacOS only).

Syntax

public static SecStatusCode FindGenericPassword (string serviceName, string accountName, out byte[] password)

Parameters

serviceName
The name of the service for generic password.
accountName
The account name of the service for generic password.
password
If the method succeeds, the byte array representing the password.

Returns

If the method succeeds, SecStatusCode.Success is returned. Otherwise the return value indicates the reason for the failure.

Remarks

This method can be used to lookup for the password in the default MacOS keychain for accounts other than Internet. Both serviceName and accountName are optional and will accept nulls. Provide as many as needed to narrow the search sufficiently for your application. If multiple matching passwords exist, the first one will be returned. This method will cause the Unlock Keychain dialog box to be displayed, if the default keychain is currently locked. This method is not available for iOS.

Requirements

Namespace: MonoMac.Security
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0