CoreFiles by mySites.guru
JWESerializer.php33 lines, 840 bytes, from Joomla_6.2.0-rc1-Release_Candidate-Full_Package.zip
Raw History Compare with 6.1.4-rc1
md5
e66514cbffb0062630613efe49af8088
sha1
1f456531269b9feaf3c1a29f43337cafa8ac549d
sha256
5ea923e0a441682247d75d43daafe1d2d098df7c6ada53bfea3f9ed786399274
<?php

declare(strict_types=1);

namespace Jose\Component\Encryption\Serializer;

use Jose\Component\Encryption\JWE;

interface JWESerializer
{
    /**
     * The name of the serialization method.
     */
    public function name(): string;

    /**
     * Display name of the serialization method.
     */
    public function displayName(): string;

    /**
     * Converts a JWE into a string. If the JWE is designed for multiple recipients and the serializer only supports one
     * recipient, the recipient index has to be set.
     */
    public function serialize(JWE $jws, ?int $recipientIndex = null): string;

    /**
     * Loads data and return a JWE object. Throws an exception in case of failure.
     *
     * @param string $input A string that represents a JWE
     */
    public function unserialize(string $input): JWE;
}

The same content is in 136 releases, Joomla 5.1.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.