---
title: "rejectProtectionSpaceAndContinue(with:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/urlauthenticationchallengesender/rejectprotectionspaceandcontinue(with:)"
---

# rejectProtectionSpaceAndContinue(with:)

Rejects the currently supplied protection space.

## Declaration

```swift
optional func rejectProtectionSpaceAndContinue(with challenge: URLAuthenticationChallenge)
```

## Parameters

- `challenge`: The challenge that should be rejected.

## See Also

### Protocol Methods

- [cancel(_:)](foundation/urlauthenticationchallengesender/cancel(_:).md)
- [continueWithoutCredential(for:)](foundation/urlauthenticationchallengesender/continuewithoutcredential(for:).md)
- [use(_:for:)](foundation/urlauthenticationchallengesender/use(_:for:).md)
- [performDefaultHandling(for:)](foundation/urlauthenticationchallengesender/performdefaulthandling(for:).md)
