PHP Interface Jose\Object\RecipientInterface

Afficher le fichier Open project: spomky-labs/jose Interface Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

createRecipient() public static méthode

public static createRecipient ( Jose\Object\JWKInterface $recipient_key, array $headers = [] ) : Recipient
$recipient_key Jose\Object\JWKInterface
$headers array
Résultat Recipient

createRecipientFromLoadedJWE() public static méthode

public static createRecipientFromLoadedJWE ( array $headers, string | null $encrypted_key ) : Recipient
$headers array
$encrypted_key string | null
Résultat Recipient

getEncryptedKey() public méthode

public getEncryptedKey ( ) : string
Résultat string

getHeader() public méthode

Returns the value of the unprotected header of the specified key.
public getHeader ( string $key ) : mixed | null
$key string The key
Résultat mixed | null Header value

getHeaders() public méthode

public getHeaders ( ) : array
Résultat array

getRecipientKey() public méthode

public getRecipientKey ( ) : Jose\Object\JWKInterface
Résultat Jose\Object\JWKInterface

hasHeader() public méthode

public hasHeader ( string $key ) : boolean
$key string The key
Résultat boolean