◆ __construct()
◆ addSignature()
addSignature |
( |
JWK |
$signatureKey, |
|
|
array |
$protectedHeader, |
|
|
array |
$header = [] |
|
) |
| |
Adds the information needed to compute the signature. This method will return a new JWSBuilder object.
- Exceptions
-
InvalidArgumentException | if the payload encoding is inconsistent |
- Renvoie
- JWSBuilder
Références $header, JWSBuilder\$isPayloadEncoded, $this, JWSBuilder\checkB64AndCriticalHeader(), JWSBuilder\checkDuplicatedHeaderParameters(), JWSBuilder\checkIfPayloadIsEncoded(), KeyChecker\checkKeyAlgorithm(), KeyChecker\checkKeyUsage(), elseif, JWSBuilder\findSignatureAlgorithm(), et null.
◆ checkB64AndCriticalHeader()
checkB64AndCriticalHeader |
( |
array |
$protectedHeader | ) |
|
|
private |
- Exceptions
-
LogicException | if the header parameter "crit" is missing, invalid or does not contain "b64" when "b64" is set |
Référencé par JWSBuilder\addSignature().
◆ checkDuplicatedHeaderParameters()
checkDuplicatedHeaderParameters |
( |
array |
$header1, |
|
|
array |
$header2 |
|
) |
| |
|
private |
◆ checkIfPayloadIsEncoded()
checkIfPayloadIsEncoded |
( |
array |
$protectedHeader | ) |
|
|
private |
◆ create()
◆ findSignatureAlgorithm()
findSignatureAlgorithm |
( |
JWK |
$key, |
|
|
array |
$protectedHeader, |
|
|
array |
$header |
|
) |
| |
|
private |
- Exceptions
-
InvalidArgumentException | if the header parameter "alg" is missing or the algorithm is not allowed/not supported |
- Renvoie
- MacAlgorithm|SignatureAlgorithm
Références $header, et $key.
Référencé par JWSBuilder\addSignature().
◆ getSignatureAlgorithmManager()
getSignatureAlgorithmManager |
( |
| ) |
|
◆ withPayload()
withPayload |
( |
string |
$payload, |
|
|
bool |
$isPayloadDetached = false |
|
) |
| |
◆ $isPayloadDetached
◆ $isPayloadEncoded
◆ $payload
◆ $signatureAlgorithmManager
$signatureAlgorithmManager |
|
private |
◆ $signatures
La documentation de cette classe a été générée à partir du fichier suivant :