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 (
[ mixed $data = null ]
): boolean

Authenticate to the document with given credentials.

Parameters
$data : mixed

Credentials data

Return Values

Authentication was successful or not

decryptStream()

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

Decrypts stream data through the desired security handler.

Parameters
$data : string
 
$param : null|array|SetaPDF_Core_Type_IndirectObject

An array of possible arguments

decryptString()

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

Decrypts string data through the desired security handler.

Parameters
$data : string
 
$param : null|array|SetaPDF_Core_Type_IndirectObject

An array of possible arguments

encryptStream()

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

Encrypts stream data through the desired security handler.

Parameters
$data : string
 
$param : mixed
 

encryptString()

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

Encrypts string data through the desired security handler.

Parameters
$data : string
 
$param : mixed
 

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 (
integer $permission
): void

Queries if a permission is granted.

Parameters
$permission : integer
 

getPermissions()

Returns current permissions.

isAuth()

abstract public SetaPDF_Core_SecHandler_SecHandlerInterface::isAuth (
void
): boolean

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