credentialForTrust static method

NSURLCredential credentialForTrust(
  1. SecTrustRef trust
)

credentialForTrust:

Implementation

static NSURLCredential credentialForTrust(SecTrustRef trust) {
  objc.checkOsVersionInternal(
    'NSURLCredential.credentialForTrust:',
    iOS: (false, (3, 0, 0)),
    macOS: (false, (10, 6, 0)),
  );
  final _ret = _objc_msgSend_1s3ecd1(
    _class_NSURLCredential,
    _sel_credentialForTrust_,
    trust,
  );
  return NSURLCredential.castFromPointer(_ret, retain: true, release: true);
}