Up
Authors
- Generated by richard
-
- Declared in:
- Foundation/NSURLCredential.h
- Conforms to:
- NSCopying
Availability: MacOS-X 10.2.0, Base 1.13.0
Represents a user/password credential
Method summary
- (BOOL)
hasPassword;
Availability: MacOS-X 10.2.0, Base 1.13.0
Determine whether the credential has a password.
- (id)
initWithUser: (
NSString*)user
password: (
NSString*)password
persistence: (
NSURLCredentialPersistence)persistence;
Availability: MacOS-X 10.2.0, Base 1.13.0
This is a designated initialiser for the class.
Initialises and returns the receiver with a
user name and password.
The user identifies the credential and must
be specified but the password may be
nil
.
- (BOOL)
isEqual: (id)other;
Availability: MacOS-X 10.2.0, Base 1.13.0
Tests two credentials for equality... credentials are
considered to be equal if their
-user
methods return the same value, since you cannot
have more than one credential for a suser within an
NSURLProtectionSpace
.
- (
NSString*)
password;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns the password for the receiver.
May
require prompting of the user to authorize
retrieval.
May return
nil
if
retrieval of the password fails (eg authorization
failure) even if the credential actually has a
password. Call the
-hasPassword
method to determine whether the credential has a
password
- (
NSString*)
user;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns the user string for the receiver
Up