---
title: ASPasswordCredential
framework: authenticationservices
role: symbol
role_heading: Class
path: authenticationservices/aspasswordcredential
---

# ASPasswordCredential

A password credential.

## Declaration

```swift
class ASPasswordCredential
```

## Topics

### Creating a credential

- [init(user:password:)](authenticationservices/aspasswordcredential/init(user:password:).md)

### Accessing the username and password

- [user](authenticationservices/aspasswordcredential/user.md)
- [password](authenticationservices/aspasswordcredential/password.md)

### Initializers

- [init(coder:)](authenticationservices/aspasswordcredential/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [ASAuthorizationCredential](authenticationservices/asauthorizationcredential.md)
- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Passwords

- [Password AutoFill](security/password-autofill.md)
- [ASAuthorizationPasswordProvider](authenticationservices/asauthorizationpasswordprovider.md)
- [Password use in web browsers](authenticationservices/password-use-in-web-browsers.md)
