Jose\Factory\JWEFactory::createJWEToFlattenedJSON PHP 메소드

createJWEToFlattenedJSON() 공개 정적인 메소드

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
    public static function createJWEToFlattenedJSON($payload, JWKInterface $recipient_key, array $shared_protected_headers = [], $shared_headers = [], $recipient_headers = [], $aad = null)
    {
        $jwe = self::createJWEAndEncrypt($payload, $recipient_key, $shared_protected_headers, $shared_headers, $recipient_headers, $aad);
        return $jwe->toFlattenedJSON(0);
    }