PHP Класс Jose\Decrypter

Наследование: implements jose\DecrypterInterface, use trait Jose\Behaviour\HasKeyChecker, use trait Jose\Behaviour\HasJWAManager, use trait Jose\Behaviour\HasCompressionManager, use trait Jose\Behaviour\CommonCipheringMethods
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods ) Decrypter constructor.
createDecrypter ( array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF', 'ZLIB', 'GZ'] )
decryptUsingKey ( Jose\Object\JWEInterface &$jwe, Jose\Object\JWKInterface $jwk, &$recipient_index = null )
decryptUsingKeySet ( Jose\Object\JWEInterface &$jwe, Jose\Object\JWKSetInterface $jwk_set, &$recipient_index = null )

Приватные методы

Метод Описание
checkCompleteHeader ( array $complete_headers )
checkJWKSet ( Jose\Object\JWKSetInterface $jwk_set )
checkPayload ( Jose\Object\JWEInterface $jwe )
checkRecipients ( Jose\Object\JWEInterface $jwe )
decompressIfNeeded ( string &$payload, array $complete_headers )
decryptCEK ( Jose\Algorithm\JWAInterface $key_encryption_algorithm, Jose\Algorithm\ContentEncryptionAlgorithmInterface $content_encryption_algorithm, Jose\Object\JWKInterface $key, Jose\Object\RecipientInterface $recipient, array $complete_headers ) : null | string
decryptPayload ( Jose\Object\JWEInterface &$jwe, string $cek, Jose\Algorithm\ContentEncryptionAlgorithmInterface $content_encryption_algorithm, array $complete_headers ) : boolean
decryptRecipientKey ( Jose\Object\JWEInterface &$jwe, Jose\Object\JWKSetInterface $jwk_set, integer $i ) : integer | null
getCompressionMethod ( string $method ) : Jose\Compression\CompressionInterface
getContentEncryptionAlgorithm ( array $complete_headers ) : Jose\Algorithm\ContentEncryptionAlgorithmInterface
getKeyEncryptionAlgorithm ( array $complete_headers ) : Jose\Algorithm\KeyEncryptionAlgorithmInterface

Описание методов

__construct() публичный метод

Decrypter constructor.
public __construct ( array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods )
$key_encryption_algorithms array
$content_encryption_algorithms array
$compression_methods array

createDecrypter() публичный статический метод

public static createDecrypter ( array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF', 'ZLIB', 'GZ'] )
$key_encryption_algorithms array
$content_encryption_algorithms array
$compression_methods array

decryptUsingKey() публичный метод

public decryptUsingKey ( Jose\Object\JWEInterface &$jwe, Jose\Object\JWKInterface $jwk, &$recipient_index = null )
$jwe Jose\Object\JWEInterface
$jwk Jose\Object\JWKInterface

decryptUsingKeySet() публичный метод

public decryptUsingKeySet ( Jose\Object\JWEInterface &$jwe, Jose\Object\JWKSetInterface $jwk_set, &$recipient_index = null )
$jwe Jose\Object\JWEInterface
$jwk_set Jose\Object\JWKSetInterface