StandardSecurityHandler

StandardSecurityHandler

Vue de l’ensemble

‘StandardSecurityHandler’ est une classe dans Aspose.PDF FOSS pour Java.

Travail de sécurité standard - validez les mots de passe et produit des clés de cryptage.

Cette classe fournit 7 méthodes pour travailler avec des objets StandardSecurityHandler dans les programmes Java. Les méthodologies disponibles comprennent: ‘StandardSec SecurityHadler’, ‘authenticate’, autenticatOwnerPassword', ‘autentiqueUserPasswords’, 'getEncryptionDict', ’get EncryptoKey', ''isAuthentified'. Tous les membres publics sont accessibles à n'importe quelle application Java après l'installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : 'authentiqué', ‚encryptionsDikt, ’encryptingKee`.

Propriétés

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

méthodes

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.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français