PHP Интерфейс Jose\DecrypterInterface

Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
createDecrypter ( array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF', 'ZLIB', 'GZ'] ) : Jose\DecrypterInterface
decryptUsingKey ( Jose\Object\JWEInterface &$input, Jose\Object\JWKInterface $jwk, null | integer &$recipient_index = null )
decryptUsingKeySet ( Jose\Object\JWEInterface &$input, Jose\Object\JWKSetInterface $jwk_set, null | integer &$recipient_index = null )
getSupportedCompressionMethods ( ) : string[]
getSupportedContentEncryptionAlgorithms ( ) : string[]
getSupportedKeyEncryptionAlgorithms ( ) : string[]

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

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

public static createDecrypter ( array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF', 'ZLIB', 'GZ'] ) : Jose\DecrypterInterface
$key_encryption_algorithms array
$content_encryption_algorithms array
$compression_methods array
Результат Jose\DecrypterInterface

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

public decryptUsingKey ( Jose\Object\JWEInterface &$input, Jose\Object\JWKInterface $jwk, null | integer &$recipient_index = null )
$input Jose\Object\JWEInterface A JWE object to decrypt
$jwk Jose\Object\JWKInterface The key used to decrypt the input
$recipient_index null | integer If the JWE has been decrypted, an integer that represents the ID of the recipient is set

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

public decryptUsingKeySet ( Jose\Object\JWEInterface &$input, Jose\Object\JWKSetInterface $jwk_set, null | integer &$recipient_index = null )
$input Jose\Object\JWEInterface A JWE object to decrypt
$jwk_set Jose\Object\JWKSetInterface The key set used to decrypt the input
$recipient_index null | integer If the JWE has been decrypted, an integer that represents the ID of the recipient is set

getSupportedCompressionMethods() публичный Метод

public getSupportedCompressionMethods ( ) : string[]
Результат string[]

getSupportedContentEncryptionAlgorithms() публичный Метод

public getSupportedContentEncryptionAlgorithms ( ) : string[]
Результат string[]

getSupportedKeyEncryptionAlgorithms() публичный Метод

public getSupportedKeyEncryptionAlgorithms ( ) : string[]
Результат string[]