Sets the default credential for a specified protection space.
Original signature is '- (void)setDefaultCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)protectionSpace'
Available in Mac OS X v10.2 with Safari 1.0 installed and later.

C# | Visual Basic | Visual C++ |
public virtual void SetDefaultCredentialForProtectionSpace( NSURLCredential credential, NSURLProtectionSpace protectionSpace )
Public Overridable Sub SetDefaultCredentialForProtectionSpace ( _ credential As NSURLCredential, _ protectionSpace As NSURLProtectionSpace _ )
public: virtual void SetDefaultCredentialForProtectionSpace( NSURLCredential^ credential, NSURLProtectionSpace^ protectionSpace )

- credential (NSURLCredential)
- The URL credential to set as the default for protectionSpace. If the receiver does not contain credential in the specified protectionSpace it will be added.
- protectionSpace (NSURLProtectionSpace)
- The protection space whose default credential is being set.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)