Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSURLCredentialMBS class.
NSURLCredentialMBS.credential(User as string, password as string, persistence as Integer = 0) as NSURLCredentialMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 13.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
user: the username
password: the password
persistence: Integer that says to store per session, permanently or not at all.
Can be NSURLCredentialPersistenceForSession, NSURLCredentialPersistenceNone or NSURLCredentialPersistencePermanent.
NSURLCredentialMBS.credentialWithPEM(Data as MemoryBlock, Password as String = "") as NSURLCredentialMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Password is optional.
This is a convenience function using SecItemImport to read data and then builds the result with credentialWithIdentity function.
Returns nil for any error.
NSURLCredentialMBS.credentialWithPKCS12(Data as MemoryBlock, Password as String = "") as NSURLCredentialMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Password is optional.
This is a convenience function using SecPKCS12Import to read data and then builds the result with credentialWithIdentity function.
Returns nil for any error.
NSURLCredentialMBS.credentialWithTrustingServer(ProtectionSpace as NSURLProtectionSpaceMBS) as NSURLCredentialMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This is a convenience function using the ServerTrust in the protection space to wrap it in a new to read data and then builds the result with credential object with credentialForTrust function.
Returns nil for any error.
The items on this page are in the following plugins: MBS MacBase Plugin.