PHP Класс Jose\JWTCreator

Наследование: implements jose\JWTCreatorInterface
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( jose\SignerInterface $signer ) JWTCreator constructor.
enableEncryptionSupport ( jose\EncrypterInterface $encrypter )
encrypt ( $payload, array $encryption_protected_headers, Jose\Object\JWKInterface $encryption_key )
getSupportedCompressionMethods ( )
getSupportedContentEncryptionAlgorithms ( )
getSupportedKeyEncryptionAlgorithms ( )
getSupportedSignatureAlgorithms ( )
isEncryptionSupportEnabled ( ) : boolean
sign ( $payload, array $signature_protected_headers, Jose\Object\JWKInterface $signature_key )
signAndEncrypt ( $payload, array $signature_protected_headers, Jose\Object\JWKInterface $signature_key, array $encryption_protected_headers, Jose\Object\JWKInterface $encryption_key )

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

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

JWTCreator constructor.
public __construct ( jose\SignerInterface $signer )
$signer jose\SignerInterface

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

public enableEncryptionSupport ( jose\EncrypterInterface $encrypter )
$encrypter jose\EncrypterInterface

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

public encrypt ( $payload, array $encryption_protected_headers, Jose\Object\JWKInterface $encryption_key )
$encryption_protected_headers array
$encryption_key Jose\Object\JWKInterface

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

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

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

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

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

public isEncryptionSupportEnabled ( ) : boolean
Результат boolean

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

public sign ( $payload, array $signature_protected_headers, Jose\Object\JWKInterface $signature_key )
$signature_protected_headers array
$signature_key Jose\Object\JWKInterface

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

public signAndEncrypt ( $payload, array $signature_protected_headers, Jose\Object\JWKInterface $signature_key, array $encryption_protected_headers, Jose\Object\JWKInterface $encryption_key )
$signature_protected_headers array
$signature_key Jose\Object\JWKInterface
$encryption_protected_headers array
$encryption_key Jose\Object\JWKInterface