SetaPDF_Core_SecHandler_SecHandlerInterface Security handler interface

File: /SetaPDF v2/Core/SecHandler/SecHandlerInterface.php

Implemented in

Summary

Methods

auth()

abstract public SetaPDF_Core_SecHandler_SecHandlerInterface::auth (
[ $data = null ]
):

Authenticate to the document with given credentials.

Parameters
$data

Credentials data

Return Values

Authentication was successful or not

decryptStream()

abstract public SetaPDF_Core_SecHandler_SecHandlerInterface::decryptStream (
$data [, $param = null ]
): void

Decrypts stream data through the desired security handler.

Parameters
$data
 
$param

An array of possible arguments

decryptString()

abstract public SetaPDF_Core_SecHandler_SecHandlerInterface::decryptString (
$data [, $param = null ]
): void

Decrypts string data through the desired security handler.

Parameters
$data
 
$param

An array of possible arguments

encryptStream()

abstract public SetaPDF_Core_SecHandler_SecHandlerInterface::encryptStream (
$data [, $param = null ]
): void

Encrypts stream data through the desired security handler.

Parameters
$data
 
$param
 

encryptString()

abstract public SetaPDF_Core_SecHandler_SecHandlerInterface::encryptString (
$data [, $param = null ]
): void

Encrypts string data through the desired security handler.

Parameters
$data
 
$param
 

getAuthMode()

Get the auth mode.

getDocument()

Returns the document instance of this security handler.

getEncryptMetadata()

Returns true if the metadata are/will be encrypted.

getEncryptionDictionary()

Returns the encryption dictionary.

getEncryptionKey()

Get the encryption key if known/authenticated.

Exceptions

Throws SetaPDF_Core_SecHandler_Exception

getPdfVersion()

Returns the needed PDF version for this security handler.

getPermission()

abstract public SetaPDF_Core_SecHandler_SecHandlerInterface::getPermission (
$permission
): void

Queries if a permission is granted.

Parameters
$permission
 

getPermissions()

Returns current permissions.

isAuth()

Returns the status if the handler is authenticated and ready to encrypt and decrypt strings or streams.