Instance Property

hasPassword

A Boolean value that indicates whether the credential has a password.

Declaration

@property(readonly) BOOL hasPassword;

Discussion

This value is YES if the receiver has a password, NO otherwise.

This method does not attempt to retrieve the password.

If this credential's password is stored in the user’s keychain, password may return nil even if this method returns YES—getting the password may fail, or the user may refuse access.

See Also

Getting Credential Properties

user

The credential’s user name.

certificates

The intermediate certificates of the credential, if it is a client certificate credential.

password

The credential’s password.

identity

The identity of this credential if it is a client certificate credential.

persistence

The credential’s persistence setting.

NSURLCredentialPersistence

Constants that specify how long the credential will be kept.