setasign\FpdiPdfParser\PdfParser\SecHandler
SecHandler An abstract SecHandler class
File: /FPDI PDF-Parser v2/PdfParser/SecHandler/SecHandler.php
Class hierarchy
Summary
Constants
AES
Encryption constant
AES_128
Encryption constant
AES_256
Encryption constant
ARCFOUR
Encryption constant
OWNER
Owner auth mode
USER
User auth mode
Properties
$encryptionDictionary
The encryption dictionary
$encryptionKey
The encryption key
Static Methods
aesDecrypt()
Parameters
- $key : string
- $data : string
- $bits : string
arcfour()
checkCipherSupport()
factory()
Parameters
- $parser : \setasign\FpdiPdfParser\PdfParser\PdfParser
- $encryptionDictionary : \setasign\Fpdi\PdfParser\Type\PdfDictionary
Exceptions
Throws \setasign\Fpdi\PdfParser\PdfParserException
Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException
Throws SecHandlerException
Throws \setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException
Methods
__construct()
Parameters
- $parser : \setasign\FpdiPdfParser\PdfParser\PdfParser
- $encryptionDictionary : \setasign\Fpdi\PdfParser\Type\PdfDictionary
Exceptions
Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException
Throws SecHandlerException
Throws \setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException
Throws \setasign\Fpdi\PdfParser\PdfParserException
computeHashR6()
Parameters
- $data : string
- $inputPassword : string
- $userKey : string
decrypt()
Parameters
- $data : string
- $algorithm : array
- $objectNumber : int
- $generationNumber : int
Exceptions
Throws SecHandlerException
decryptStream()
Parameters
- $data : string
- $objectNumber : int
- $generationNumber : int
Exceptions
Throws SecHandlerException
decryptString()
Parameters
- $data : string
- $objectNumber : int
- $generationNumber : int
Exceptions
Throws SecHandlerException
isAuth()
Checks for authentication and tries to authenticate without arguments through the auth() method.
isMetadataEncrypted()
Checks whether metadata is encrypted or not.
Exceptions
Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException