PHP Класс Jose\Loader

JWS object can also be verified.
Наследование: implements jose\LoaderInterface
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
load ( $input )
loadAndDecryptUsingKey ( $input, Jose\Object\JWKInterface $jwk, array $allowed_key_encryption_algorithms, array $allowed_content_encryption_algorithms, &$recipient_index = null )
loadAndDecryptUsingKeySet ( $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_key_encryption_algorithms, array $allowed_content_encryption_algorithms, &$recipient_index = null )
loadAndVerifySignatureUsingKey ( $input, Jose\Object\JWKInterface $jwk, array $allowed_algorithms, &$signature_index = null )
loadAndVerifySignatureUsingKeyAndDetachedPayload ( $input, Jose\Object\JWKInterface $jwk, array $allowed_algorithms, $detached_payload, &$signature_index = null )
loadAndVerifySignatureUsingKeySet ( $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_algorithms, &$signature_index = null )
loadAndVerifySignatureUsingKeySetAndDetachedPayload ( $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_algorithms, $detached_payload, &$signature_index = null )

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

Метод Описание
convert ( string $input ) : array
fromCompactSerializationRecipientToSerialization ( array $parts ) : array
fromCompactSerializationSignatureToSerialization ( array $parts ) : array
fromCompactSerializationToSerialization ( string $input ) : array
fromFlattenedSerializationRecipientToSerialization ( $input ) : array
fromFlattenedSerializationSignatureToSerialization ( $input ) : array
loadAndDecrypt ( string $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_key_encryption_algorithms, array $allowed_content_encryption_algorithms, null | integer &$recipient_index = null ) : Jose\Object\JWEInterface
loadAndVerifySignature ( string $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_algorithms, string | null $detached_payload = null, null | integer &$signature_index = null ) : Jose\Object\JWSInterface

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

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

public load ( $input )

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

public loadAndDecryptUsingKey ( $input, Jose\Object\JWKInterface $jwk, array $allowed_key_encryption_algorithms, array $allowed_content_encryption_algorithms, &$recipient_index = null )
$jwk Jose\Object\JWKInterface
$allowed_key_encryption_algorithms array
$allowed_content_encryption_algorithms array

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

public loadAndDecryptUsingKeySet ( $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_key_encryption_algorithms, array $allowed_content_encryption_algorithms, &$recipient_index = null )
$jwk_set Jose\Object\JWKSetInterface
$allowed_key_encryption_algorithms array
$allowed_content_encryption_algorithms array

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

public loadAndVerifySignatureUsingKey ( $input, Jose\Object\JWKInterface $jwk, array $allowed_algorithms, &$signature_index = null )
$jwk Jose\Object\JWKInterface
$allowed_algorithms array

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

public loadAndVerifySignatureUsingKeyAndDetachedPayload ( $input, Jose\Object\JWKInterface $jwk, array $allowed_algorithms, $detached_payload, &$signature_index = null )
$jwk Jose\Object\JWKInterface
$allowed_algorithms array

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

public loadAndVerifySignatureUsingKeySet ( $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_algorithms, &$signature_index = null )
$jwk_set Jose\Object\JWKSetInterface
$allowed_algorithms array

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

public loadAndVerifySignatureUsingKeySetAndDetachedPayload ( $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_algorithms, $detached_payload, &$signature_index = null )
$jwk_set Jose\Object\JWKSetInterface
$allowed_algorithms array