# PasswordMatches

## Content

[**DsPdfJS API v9.1.3**](../README)

***

[DsPdfJS API](../globals) / PasswordMatches

# Enumeration: PasswordMatches

Defines the flags that describe a PDF's password protection status.
See [StandardSecurityHandler#passwordMatches](../classes/StandardSecurityHandler#passwordmatches) property for details.

## Enumeration Members

### None

> **None**: `0`

The document is not encrypted.

***

### OwnerPasswordEmpty

> **OwnerPasswordEmpty**: `2`

The document is encrypted with an empty Owner password.

***

### OwnerPasswordMatch

> **OwnerPasswordMatch**: `8`

The password passed to the [PdfDocument.load](../classes/PdfDocument#load) method
matches the document's Owner password.

***

### UserPasswordEmpty

> **UserPasswordEmpty**: `1`

The document is encrypted with an empty User password.

***

### UserPasswordMatch

> **UserPasswordMatch**: `4`

The password passed to the [PdfDocument.load](../classes/PdfDocument#load) method
matches the document's User password.
