PHP Class Jose\Factory\JWEFactory

Inheritance: implements Jose\Factory\JWEFactoryInterface
Show file Open project: spomky-labs/jose Class Usage Examples

Public Methods

Method Description
createJWE ( $payload, array $shared_protected_headers = [], array $shared_headers = [], $aad = null )
createJWEToCompactJSON ( $payload, Jose\Object\JWKInterface $recipient_key, array $shared_protected_headers )
createJWEToFlattenedJSON ( $payload, Jose\Object\JWKInterface $recipient_key, array $shared_protected_headers = [], $shared_headers = [], $recipient_headers = [], $aad = null )

Private Methods

Method Description
createJWEAndEncrypt ( mixed $payload, Jose\Object\JWKInterface $recipient_key, array $shared_protected_headers = [], array $shared_headers = [], array $recipient_headers = [], string | null $aad = null ) : Jose\Object\JWEInterface

Method Details

createJWE() public static method

public static createJWE ( $payload, array $shared_protected_headers = [], array $shared_headers = [], $aad = null )
$shared_protected_headers array
$shared_headers array

createJWEToCompactJSON() public static method

public static createJWEToCompactJSON ( $payload, Jose\Object\JWKInterface $recipient_key, array $shared_protected_headers )
$recipient_key Jose\Object\JWKInterface
$shared_protected_headers array

createJWEToFlattenedJSON() public static method

public static createJWEToFlattenedJSON ( $payload, Jose\Object\JWKInterface $recipient_key, array $shared_protected_headers = [], $shared_headers = [], $recipient_headers = [], $aad = null )
$recipient_key Jose\Object\JWKInterface
$shared_protected_headers array