---
title: "authenticate(withPassword:)"
framework: Collaboration
role: symbol
role_heading: Instance Method
platforms: [macOS 10.5+]
path: "collaboration/cbuseridentity/authenticate(withpassword:)"
---

# authenticate(withPassword:)

Returns a Boolean value indicating whether the given password is correct for the identity.

## Declaration

```swift
func authenticate(withPassword password: String) -> Bool
```

## Parameters

- `password`: The password to test for the identity.

## Return Value

Return Value TRUE if the password is correct; otherwise, FALSE.

## See Also

### Related Documentation

- [Identity Services Programming Guide](apple-archive/documentation/Networking/Conceptual/IdentityServices_ProgGuide/Introduction.md)

### Password Authentication

- [certificate](collaboration/cbuseridentity/certificate.md)
- [isEnabled](collaboration/cbuseridentity/isenabled.md)
