PHP Интерфейс Jose\Object\RecipientInterface

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

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

Метод Описание
createRecipient ( Jose\Object\JWKInterface $recipient_key, array $headers = [] ) : Recipient
createRecipientFromLoadedJWE ( array $headers, string | null $encrypted_key ) : Recipient
getEncryptedKey ( ) : string
getHeader ( string $key ) : mixed | null Returns the value of the unprotected header of the specified key.
getHeaders ( ) : array
getRecipientKey ( ) : Jose\Object\JWKInterface
hasHeader ( string $key ) : boolean

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

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

public static createRecipient ( Jose\Object\JWKInterface $recipient_key, array $headers = [] ) : Recipient
$recipient_key Jose\Object\JWKInterface
$headers array
Результат Recipient

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

public static createRecipientFromLoadedJWE ( array $headers, string | null $encrypted_key ) : Recipient
$headers array
$encrypted_key string | null
Результат Recipient

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

public getEncryptedKey ( ) : string
Результат string

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

Returns the value of the unprotected header of the specified key.
public getHeader ( string $key ) : mixed | null
$key string The key
Результат mixed | null Header value

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

public getHeaders ( ) : array
Результат array

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

public getRecipientKey ( ) : Jose\Object\JWKInterface
Результат Jose\Object\JWKInterface

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

public hasHeader ( string $key ) : boolean
$key string The key
Результат boolean