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
| Name | Type | Access | Description |
|---|---|---|---|
authenticated | boolean | Read | Gets the authenticated. |
encryptionKey | byte[] | Read | Gets the encryption key. |
encryptionDict | PDFEncryptionDict | Read | Gets the encryption dict. |
méthodes
| 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 | Returns true if authenticated is set. |
getEncryptionKey() → byte[] | Returns the encryption key. |
getEncryptionDict() → PDFEncryptionDict | Returns the encryption dict. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise