b0y-101 Mini Shell


Current Path : E:/www/b-group.old/spfin/mainpay/jwt-framework/src/Component/Signature/Serializer/
File Upload :
Current File : E:/www/b-group.old/spfin/mainpay/jwt-framework/src/Component/Signature/Serializer/JWSSerializer.php

<?php

declare(strict_types=1);

namespace Jose\Component\Signature\Serializer;

use Jose\Component\Signature\JWS;

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

    public function displayName(): string;

    /**
     * Converts a JWS into a string.
     */
    public function serialize(JWS $jws, ?int $signatureIndex = null): string;

    /**
     * Loads data and return a JWS object.
     *
     * @param string $input A string that represents a JWS
     */
    public function unserialize(string $input): JWS;
}

Copyright © 2019 by b0y-101