[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/web-token/jwt-signature/ -> JWS.php (summary)

(no description)

File Size: 150 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JWS:: (9 methods):
  __construct()
  getPayload()
  isPayloadDetached()
  getEncodedPayload()
  getSignatures()
  getSignature()
  addSignature()
  countSignatures()
  split()


Class: JWS  - X-Ref

__construct(?string $payload, ?string $encodedPayload = null, bool $isPayloadDetached = false)   X-Ref


getPayload()   X-Ref
No description

isPayloadDetached()   X-Ref
Returns true if the payload is detached.


getEncodedPayload()   X-Ref
Returns the Base64Url encoded payload.
If the payload is detached, this method returns null.


getSignatures()   X-Ref
Returns the signatures associated with the JWS.

return: Signature[]

getSignature(int $id)   X-Ref
Returns the signature at the given index.


addSignature(string $signature, array $protectedHeader, ?string $encodedProtectedHeader, array $header = [])   X-Ref
This method adds a signature to the JWS object.
Its returns a new JWS object.

return: JWS

countSignatures()   X-Ref
Returns the number of signature associated with the JWS.


split()   X-Ref
This method splits the JWS into a list of JWSs.
It is only useful when the JWS contains more than one signature (JSON General Serialization).

return: JWS[]



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer