---
title: authenticationMethod
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlprotectionspace/authenticationmethod
---

# authenticationMethod

The authentication method used by the receiver.

## Declaration

```swift
var authenticationMethod: String { get }
```

## Mentioned in

Performing manual server trust authentication

## Discussion

Discussion The supported authentication methods are listed in NSURLProtectionSpace authentication method constants.

## See Also

### Getting protection space properties

- [distinguishedNames](foundation/urlprotectionspace/distinguishednames.md)
- [host](foundation/urlprotectionspace/host.md)
- [port](foundation/urlprotectionspace/port.md)
- [protocol](foundation/urlprotectionspace/protocol.md)
- [proxyType](foundation/urlprotectionspace/proxytype.md)
- [realm](foundation/urlprotectionspace/realm.md)
- [receivesCredentialSecurely](foundation/urlprotectionspace/receivescredentialsecurely.md)
- [serverTrust](foundation/urlprotectionspace/servertrust.md)
