JwtUtils
Constants
BEDROCK_SIGNING_KEY_CURVE_NAME
php
public const BEDROCK_SIGNING_KEY_CURVE_NAME = "secp384r1"Methods
b64UrlDecode()
php
public static function b64UrlDecode(string $str) : stringb64UrlEncode()
php
public static function b64UrlEncode(string $str) : stringcreate()
php
public static function create(array $header, array $claims, \OpenSSLAsymmetricKey $signingKey) : stringderPublicKeyToPem()
php
public static function derPublicKeyToPem(string $derKey) : stringemitDerPublicKey()
php
public static function emitDerPublicKey(\OpenSSLAsymmetricKey $opensslKey) : stringparse()
php
public static function parse(string $token) : arrayTODO: replace this result with an object
parseDerPublicKey()
php
public static function parseDerPublicKey(string $derKey) : \OpenSSLAsymmetricKeyrsaPublicKeyModExpToDer()
php
public static function rsaPublicKeyModExpToDer(string $nBase64, string $eBase64) : stringCreate a public key represented in DER format from RSA modulus and exponent information
split()
php
public static function split(string $jwt) : arrayverify()
php
public static function verify(string $jwt, string $signingKeyDer, bool $ec) : bool