PHP Interface Jose\Factory\JWEFactoryInterface

Datei anzeigen Open project: spomky-labs/jose

Public Methods

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

Method Details

createJWE() public static method

public static createJWE ( mixed $payload, array $shared_protected_headers = [], array $shared_headers = [], null | string $aad = null ) : Jose\Object\JWEInterface
$payload mixed
$shared_protected_headers array
$shared_headers array
$aad null | string
return Jose\Object\JWEInterface

createJWEToCompactJSON() public static method

public static createJWEToCompactJSON ( mixed $payload, Jose\Object\JWKInterface $recipient_key, array $shared_protected_headers ) : string
$payload mixed
$recipient_key Jose\Object\JWKInterface
$shared_protected_headers array
return string

createJWEToFlattenedJSON() public static method

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