예제 #1
0
        public static NSUrlCredential FromIdentityCertificatesPersistance(SecIdentity identity, SecCertificate [] certificates, NSUrlCredentialPersistence persistence)
        {
            if (identity == null)
                throw new ArgumentNullException ("identity");

            if (certificates == null)
                throw new ArgumentNullException ("certificates");

            using (var certs = NSArray.FromNativeObjects (certificates))
                return FromIdentityCertificatesPersistanceInternal (identity.Handle, certs.Handle, persistence);
        }
예제 #2
0
        public static NSUrlCredential FromIdentityCertificatesPersistance(SecIdentity identity, SecCertificate [] certificates, NSUrlCredentialPersistence persistence)
        {
            if (identity == null)
            {
                throw new ArgumentNullException("identity");
            }

            if (certificates == null)
            {
                throw new ArgumentNullException("certificates");
            }

            using (var certs = NSArray.FromNativeObjects(certificates))
                return(FromIdentityCertificatesPersistanceInternal(identity.Handle, certs.Handle, persistence));
        }
예제 #3
0
 public NSUrlCredential(SecIdentity identity, SecCertificate [] certificates, NSUrlCredentialPersistence persistence)
     : this(identity.Handle, NSArray.FromNativeObjects (certificates).Handle, persistence)
 {
 }
예제 #4
0
 public NSUrlCredential(SecIdentity identity, SecCertificate [] certificates, NSUrlCredentialPersistence persistence)
     : this(identity.Handle, NSArray.FromNativeObjects(certificates).Handle, persistence)
 {
 }