Type Method

credentialWithUser:password:persistence:

Creates and returns an NSURLCredential object for internet password authentication with a given user name and password using a given persistence setting.

Declaration

+ (NSURLCredential *)credentialWithUser:(NSString *)user password:(NSString *)password persistence:(NSURLCredentialPersistence)persistence;

Parameters

user

The user for the credential.

password

The password for user.

persistence

The persistence setting for the credential.

Return Value

An NSURLCredential object with user name user, password password, and using persistence setting persistence.

Discussion

If persistence is NSURLCredentialPersistencePermanent the credential is stored in the keychain.

See Also

Related Symbols

- initWithUser:password:persistence:

Returns an NSURLCredential object initialized with a given user name and password using a given persistence setting.