PHP Interface Jose\Object\RecipientInterface

Datei anzeigen Open project: spomky-labs/jose Interface Usage Examples

Public Methods

Method 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 method

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

createRecipientFromLoadedJWE() public static method

public static createRecipientFromLoadedJWE ( array $headers, string | null $encrypted_key ) : Recipient
$headers array
$encrypted_key string | null
return Recipient

getEncryptedKey() public method

public getEncryptedKey ( ) : string
return string

getHeader() public method

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

getHeaders() public method

public getHeaders ( ) : array
return array

getRecipientKey() public method

public getRecipientKey ( ) : Jose\Object\JWKInterface
return Jose\Object\JWKInterface

hasHeader() public method

public hasHeader ( string $key ) : boolean
$key string The key
return boolean