setasign\SetaPDF2\Core\SecHandler
SecHandlerInterface Security handler interface
File: /SetaPDF v2/Core/SecHandler/SecHandlerInterface.php
Old class name (alias):
\SetaPDF_Core_SecHandler_SecHandlerInterface
Implemented in
Summary
Methods
auth()
Authenticate to the document with given credentials.
Parameters
- $data: mixed
Credentials data
Return Values
Authentication was successful or not
decryptStream()
abstract public SecHandlerInterface::decryptStream (
string $data,
?(\setasign\SetaPDF2\Core\Type\AbstractType & \setasign\SetaPDF2\Core\Type\IndirectObjectInterface) $param = null
): void?(\setasign\SetaPDF2\Core\Type\AbstractType & \setasign\SetaPDF2\Core\Type\IndirectObjectInterface) $param = null
Decrypts stream data through the desired security handler.
Parameters
- $data: string
- $param: ?(\setasign\SetaPDF2\Core\Type\AbstractType & \setasign\SetaPDF2\Core\Type\IndirectObjectInterface)
decryptString()
abstract public SecHandlerInterface::decryptString (
string $data,
?(\setasign\SetaPDF2\Core\Type\AbstractType & \setasign\SetaPDF2\Core\Type\IndirectObjectInterface) $param = null
): void?(\setasign\SetaPDF2\Core\Type\AbstractType & \setasign\SetaPDF2\Core\Type\IndirectObjectInterface) $param = null
Decrypts string data through the desired security handler.
Parameters
- $data: string
- $param: ?(\setasign\SetaPDF2\Core\Type\AbstractType & \setasign\SetaPDF2\Core\Type\IndirectObjectInterface)
encryptStream()
abstract public SecHandlerInterface::encryptStream (
string $data,
?(\setasign\SetaPDF2\Core\Type\AbstractType & \setasign\SetaPDF2\Core\Type\IndirectObjectInterface) $param = null
): void?(\setasign\SetaPDF2\Core\Type\AbstractType & \setasign\SetaPDF2\Core\Type\IndirectObjectInterface) $param = null
Encrypts stream data through the desired security handler.
Parameters
- $data: string
- $param: ?(\setasign\SetaPDF2\Core\Type\AbstractType & \setasign\SetaPDF2\Core\Type\IndirectObjectInterface)
encryptString()
abstract public SecHandlerInterface::encryptString (
string $data,
?(\setasign\SetaPDF2\Core\Type\AbstractType & \setasign\SetaPDF2\Core\Type\IndirectObjectInterface) $param = null
): void?(\setasign\SetaPDF2\Core\Type\AbstractType & \setasign\SetaPDF2\Core\Type\IndirectObjectInterface) $param = null
Encrypts string data through the desired security handler.
Parameters
- $data: string
- $param: ?(\setasign\SetaPDF2\Core\Type\AbstractType & \setasign\SetaPDF2\Core\Type\IndirectObjectInterface)
getEncryptionDictionary()
abstract public SecHandlerInterface::getEncryptionDictionary (
void
): \setasign\SetaPDF2\Core\Type\PdfDictionaryReturns the encryption dictionary.
getEncryptionKey()
isAuth()
Returns the status if the handler is authenticated and ready to encrypt and decrypt strings or streams.
