NSUrlCredential.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Create(String, String, NSUrlCredentialPersistence) | |
| Create(SecIdentity, SecCertificate[], NSUrlCredentialPersistence) |
Creates a new NSUrlCredential from an identity (digital certificate + private key) and a list of certificates. |
Create(String, String, NSUrlCredentialPersistence)
[Foundation.Export("credentialWithUser:password:persistence:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Foundation.NSUrlCredential Create(string user, string password, Foundation.NSUrlCredentialPersistence persistence);
[<Foundation.Export("credentialWithUser:password:persistence:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : string * string * Foundation.NSUrlCredentialPersistence -> Foundation.NSUrlCredential
Parameters
- user
- String
- password
- String
- persistence
- NSUrlCredentialPersistence
Returns
- Attributes
Applies to
Create(SecIdentity, SecCertificate[], NSUrlCredentialPersistence)
Creates a new NSUrlCredential from an identity (digital certificate + private key) and a list of certificates.
public static Foundation.NSUrlCredential Create(Security.SecIdentity identity, Security.SecCertificate[] certificates, Foundation.NSUrlCredentialPersistence persistence);
static member Create : Security.SecIdentity * Security.SecCertificate[] * Foundation.NSUrlCredentialPersistence -> Foundation.NSUrlCredential
Parameters
- identity
- SecIdentity
The identity to use for the credential.
- certificates
- SecCertificate[]
The certificates to use for the credential.
- persistence
- NSUrlCredentialPersistence
Specifies how long the credential should be kept.
Returns
A new NSUrlCredential instance.