<!--
{
  "documentType" : "article",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/URLCredential/NSURLCredential-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "NSURLCredential Implementations"
}
-->

# NSURLCredential Implementations

## Topics

### Initializers

[`init(forTrust: SecTrust)`](/documentation/Foundation/URLCredential/init(forTrust:))

Creates a URL credential instance for server trust authentication with a given accepted trust.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)