|
|
| __construct () |
| | Class constructor.
|
| |
| bool | hasJwt () |
| | Check if a JWT is defined.
|
| |
| bool | isEncrypted () |
| | Check if a JWT's content is encrypted.
|
| |
| bool | load ($jwtString, $privateKey=null) |
| | Load a JWT from a string.
|
| |
| array | getJweHeaders () |
| | Get the value of the JWE headers.
|
| |
| bool | hasHeader ($name) |
| | Check whether a JWT has a header with the specified name.
|
| |
| string | getHeader ($name, $defaultValue=null) |
| | Get the value of the header with the specified name.
|
| |
| array | getHeaders () |
| | Get the value of the headers.
|
| |
| bool | hasClaim ($name) |
| | Check whether a JWT has a claim with the specified name.
|
| |
| string array object | getClaim ($name, $defaultValue=null) |
| | Get the value of the claim with the specified name.
|
| |
| array | getPayload () |
| | Get the value of the payload.
|
| |
| bool | verify ($publicKey, $jku=null) |
| | Verify the signature of the JWT.
|
| |
| bool | hasJwt () |
| | Check if a JWT is defined.
|
| |
| bool | isEncrypted () |
| | Check if a JWT's content is encrypted.
|
| |
| bool | load ($jwtString, $privateKey=null) |
| | Load a JWT from a string.
|
| |
| array | getJweHeaders () |
| | Get the value of the JWE headers.
|
| |
| bool | hasHeader ($name) |
| | Check whether a JWT has a header with the specified name.
|
| |
| string | getHeader ($name, $defaultValue=null) |
| | Get the value of the header with the specified name.
|
| |
| array | getHeaders () |
| | Get the value of the headers.
|
| |
| bool | hasClaim ($name) |
| | Check whether a JWT has a claim with the specified name.
|
| |
| string array object | getClaim ($name, $defaultValue=null) |
| | Get the value of the claim with the specified name.
|
| |
| array | getPayload () |
| | Get the value of the payload.
|
| |
| bool | verify ($publicKey, $jku=null) |
| | Verify the signature of the JWT.
|
| |
|
| static string[] | getSupportedAlgorithms () |
| | Return an array of supported signature algorithms.
|
| |
| static array | getLastHeaders () |
| | Get the value of the headers for the last signed JWT (before any encryption).
|
| |
| static array | getLastPayload () |
| | Get the value of the payload for the last signed JWT (before any encryption).
|
| |
| static string | sign ($payload, $signatureMethod, $privateKey, $kid=null, $jku=null, $encryptionMethod=null, $publicKey=null) |
| | Sign the JWT.
|
| |
| static string null | generateKey ($signatureMethod='RS256') |
| | Generate a new private key in PEM format.
|
| |
| static string | getPublicKey ($privateKey) |
| | Get the public key for a private key.
|
| |
| static array | getJWKS ($key, $signatureMethod, $kid) |
| | Get the public JWKS from a key in PEM or JWK format.
|
| |
| static string[] | getSupportedAlgorithms () |
| | Return an array of supported signature algorithms.
|
| |
| static array | getLastHeaders () |
| | Get the value of the headers for the last signed JWT (before any encryption).
|
| |
| static array | getLastPayload () |
| | Get the value of the payload for the last signed JWT (before any encryption).
|
| |
| static string | sign ($payload, $signatureMethod, $privateKey, $kid=null, $jku=null, $encryptionMethod=null, $publicKey=null) |
| | Sign the JWT.
|
| |
| static string null | generateKey ($signatureMethod='RS256') |
| | Generate a new private key in PEM format.
|
| |
| static string | getPublicKey ($privateKey) |
| | Get the public key for a private key.
|
| |
| static array | getJWKS ($pemKey, $signatureMethod, $kid) |
| | Get the public JWKS from a key in PEM format.
|
| |
Class to implement the JWT interface using the Spomky-Labs JWT library from https://github.com/Spomky-Labs/jose.
- Deprecated:
- Use WebTokenClient instead
- See also
- WebTokenClient
- Author
- Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com
- Copyright
- SPV Software Products
- Licence: GNU Lesser General Public License, version 3 (<http://www.gnu.org/licenses/lgpl.html>)