StandardSecurityHandler

StandardSecurityHandler

Overview

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

Standard security handler — validates passwords and produces encryption keys.

This class provides 7 methods for working with StandardSecurityHandler objects in Java programs. Available methods include: StandardSecurityHandler, authenticate, authenticateOwnerPassword, authenticateUserPassword, getEncryptionDict, getEncryptionKey, isAuthenticated. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: authenticated, encryptionDict, encryptionKey.

Properties

NameTypeAccessDescription
authenticatedbooleanReadGets the authenticated.
encryptionKeybyte[]ReadGets the encryption key.
encryptionDictPDFEncryptionDictReadGets the encryption dict.

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()booleanReturns true if authenticated is set.
getEncryptionKey()byte[]Returns the encryption key.
getEncryptionDict()PDFEncryptionDictReturns the encryption dict.

See Also

 English