StandardSecurityHandler

StandardSecurityHandler

Overview

StandardSecurityHandler is a class in Aspose.Pdf FOSS for Java.

Standard security handler — validates passwords and produces encryption keys.

Properties

NameTypeAccessDescription
authenticatedbooleanRead
encryptionKeybyte[]Read
encryptionDictPDFEncryptionDictRead

Methods

SignatureDescription
StandardSecurityHandler(encDict: PDFEncryptionDict, documentId: byte[])Creates a security handler for the given encryption dictionary.
authenticate(password: byte[])booleanTries to authenticate with the given password.
authenticateUserPassword(password: byte[])booleanAttempts authentication using only the user-password branch.
authenticateOwnerPassword(password: byte[])booleanAttempts authentication using only the owner-password branch.
isAuthenticated()boolean
getEncryptionKey()byte[]
getEncryptionDict()PDFEncryptionDict

See Also