# PdfPasswordAuthenticationRole

Identifies how the supplied password or recipient certificate authenticated with the PDF security handler.

Enum 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfPasswordAuthenticationRole.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Security/PdfPasswordAuthenticationRole.cs#L4)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Identifies how the supplied password or recipient certificate authenticated with the PDF security handler.

## Inheritance

- Enum
- PdfPasswordAuthenticationRole

## Usage

Explore 7 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 7

- Property [PdfDocumentSecurityInfo.PasswordAuthenticationRole](/api/pdf/officeimo-pdf-pdfdocumentsecurityinfo/#property-passwordauthenticationrole)
- Property [PdfMergeSourceInventory.PasswordAuthenticationRole](/api/pdf/officeimo-pdf-pdfmergesourceinventory/#property-passwordauthenticationrole)
- Field [PdfPasswordAuthenticationRole.None](/api/pdf/officeimo-pdf-pdfpasswordauthenticationrole/#field-none)
- Field [PdfPasswordAuthenticationRole.Owner](/api/pdf/officeimo-pdf-pdfpasswordauthenticationrole/#field-owner)
- Field [PdfPasswordAuthenticationRole.PublicKeyRecipient](/api/pdf/officeimo-pdf-pdfpasswordauthenticationrole/#field-publickeyrecipient)
- Field [PdfPasswordAuthenticationRole.User](/api/pdf/officeimo-pdf-pdfpasswordauthenticationrole/#field-user)
- Property [PdfPermissionDeniedException.AuthenticationRole](/api/pdf/officeimo-pdf-pdfpermissiondeniedexception/#property-authenticationrole)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const PdfPasswordAuthenticationRole None` [#](#field-none)

[PdfPasswordAuthenticationRole.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Security/PdfPasswordAuthenticationRole.cs#L6)

No password authentication was performed.

Value: `0`

`public const PdfPasswordAuthenticationRole User` [#](#field-user)

[PdfPasswordAuthenticationRole.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Security/PdfPasswordAuthenticationRole.cs#L9)

The supplied password authenticated as the document user password.

Value: `1`

`public const PdfPasswordAuthenticationRole Owner` [#](#field-owner)

[PdfPasswordAuthenticationRole.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Security/PdfPasswordAuthenticationRole.cs#L12)

The supplied password authenticated as the document owner password.

Value: `2`

`public const PdfPasswordAuthenticationRole PublicKeyRecipient` [#](#field-publickeyrecipient)

[PdfPasswordAuthenticationRole.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Security/PdfPasswordAuthenticationRole.cs#L18)

A supplied certificate opened the public-key security handler as one of the document recipients. The permissions stored for that recipient apply.

Value: `3`

<!-- PowerForge markdown artifact sha256:33C8714C13E26B4304391998CF02055A8C94276E652B3A16715AE2F56939BD09 -->
