JSONFlattenedSerializer
extends Serializer
in package
FinalYes
Table of Contents
Constants
- NAME = 'jws_json_flattened'
Methods
- displayName() : string
- name() : string
- The name of the serialization.
- serialize() : string
- Converts a JWS into a string.
- unserialize() : JWS
- Loads data and return a JWS object.
- isPayloadEncoded() : bool
Constants
NAME
public
mixed
NAME
= 'jws_json_flattened'
Methods
displayName()
public
displayName() : string
Return values
stringname()
The name of the serialization.
public
name() : string
Return values
stringserialize()
Converts a JWS into a string.
public
serialize(JWS $jws[, int|null $signatureIndex = null ]) : string
Parameters
- $jws : JWS
- $signatureIndex : int|null = null
Return values
stringunserialize()
Loads data and return a JWS object.
public
unserialize(string $input) : JWS
Parameters
- $input : string
-
A string that represents a JWS
Tags
Return values
JWSisPayloadEncoded()
protected
isPayloadEncoded(array<string|int, mixed> $protectedHeader) : bool
Parameters
- $protectedHeader : array<string|int, mixed>