---
title: urlPasswordAllowed
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nscharacterset/urlpasswordallowed
---

# urlPasswordAllowed

Returns the character set for characters allowed in a password URL subcomponent.

## Declaration

```swift
class var urlPasswordAllowed: CharacterSet { get }
```

## Discussion

Discussion The password component of a URL is the component immediately following the colon after the username component of the URL, and ends at the @ sign. For example, in the URL http://username:password@www.example.com/index.html, the pass component is password.

## See Also

### Getting Character Sets for URL Encoding

- [urlFragmentAllowed](foundation/nscharacterset/urlfragmentallowed.md)
- [urlHostAllowed](foundation/nscharacterset/urlhostallowed.md)
- [urlPathAllowed](foundation/nscharacterset/urlpathallowed.md)
- [urlQueryAllowed](foundation/nscharacterset/urlqueryallowed.md)
- [urlUserAllowed](foundation/nscharacterset/urluserallowed.md)
