StandardSecurityHandler
Overview
StandardSecurityHandler is a class in Aspose.Pdf FOSS for Java.
Standard security handler — validates passwords and produces encryption keys.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
authenticated | boolean | Read | |
encryptionKey | byte[] | Read | |
encryptionDict | PDFEncryptionDict | Read |
Methods
| Signature | Description |
|---|---|
StandardSecurityHandler(encDict: PDFEncryptionDict, documentId: byte[]) | Creates a security handler for the given encryption dictionary. |
authenticate(password: byte[]) → boolean | Tries to authenticate with the given password. |
authenticateUserPassword(password: byte[]) → boolean | Attempts authentication using only the user-password branch. |
authenticateOwnerPassword(password: byte[]) → boolean | Attempts authentication using only the owner-password branch. |
isAuthenticated() → boolean | |
getEncryptionKey() → byte[] | |
getEncryptionDict() → PDFEncryptionDict |