Definition at line 64 of file JwtUtils.php.
 
◆ b64UrlDecode()
  
  
      
        
          | static pocketmine\network\mcpe\JwtUtils::b64UrlDecode  | 
          ( | 
          string |           $str | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ b64UrlEncode()
  
  
      
        
          | static pocketmine\network\mcpe\JwtUtils::b64UrlEncode  | 
          ( | 
          string |           $str | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ create()
  
  
      
        
          | static pocketmine\network\mcpe\JwtUtils::create  | 
          ( | 
          array |           $header,  | 
         
        
           | 
           | 
          array |           $claims,  | 
         
        
           | 
           | 
          \OpenSSLAsymmetricKey |           $signingKey ) | 
         
       
   | 
  
static   | 
  
 
@phpstan-param array<string, mixed> $header @phpstan-param array<string, mixed> $claims 
Definition at line 201 of file JwtUtils.php.
 
 
◆ derPublicKeyToPem()
  
  
      
        
          | static pocketmine\network\mcpe\JwtUtils::derPublicKeyToPem  | 
          ( | 
          string |           $derKey | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ emitDerPublicKey()
  
  
      
        
          | static pocketmine\network\mcpe\JwtUtils::emitDerPublicKey  | 
          ( | 
          \OpenSSLAsymmetricKey |           $opensslKey | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ parse()
  
  
      
        
          | static pocketmine\network\mcpe\JwtUtils::parse  | 
          ( | 
          string |           $token | ) | 
           | 
         
       
   | 
  
static   | 
  
 
TODO: replace this result with an object
- Returns
 - mixed[] @phpstan-return array{mixed[], mixed[], string}
 
- Exceptions
 - 
  
  
 
Definition at line 96 of file JwtUtils.php.
 
 
◆ parseDerPublicKey()
  
  
      
        
          | static pocketmine\network\mcpe\JwtUtils::parseDerPublicKey  | 
          ( | 
          string |           $derKey | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ rsaPublicKeyModExpToDer()
  
  
      
        
          | static pocketmine\network\mcpe\JwtUtils::rsaPublicKeyModExpToDer  | 
          ( | 
          string |           $nBase64,  | 
         
        
           | 
           | 
          string |           $eBase64 ) | 
         
       
   | 
  
static   | 
  
 
Create a public key represented in DER format from RSA modulus and exponent information
- Parameters
 - 
  
    | string | $nBase64 | The RSA modulus encoded in Base64  | 
    | string | $eBase64 | The RSA exponent encoded in Base64  | 
  
   
Definition at line 281 of file JwtUtils.php.
 
 
◆ split()
  
  
      
        
          | static pocketmine\network\mcpe\JwtUtils::split  | 
          ( | 
          string |           $jwt | ) | 
           | 
         
       
   | 
  
static   | 
  
 
- Returns
 - string[] @phpstan-return array{string, string, string} 
 
- Exceptions
 - 
  
  
 
Definition at line 78 of file JwtUtils.php.
 
 
◆ verify()
  
  
      
        
          | static pocketmine\network\mcpe\JwtUtils::verify  | 
          ( | 
          string |           $jwt,  | 
         
        
           | 
           | 
          string |           $signingKeyDer,  | 
         
        
           | 
           | 
          bool |           $ec ) | 
         
       
   | 
  
static   | 
  
 
 
◆ BEDROCK_SIGNING_KEY_CURVE_NAME
      
        
          | const pocketmine\network\mcpe\JwtUtils::BEDROCK_SIGNING_KEY_CURVE_NAME = "secp384r1" | 
        
      
 
 
The documentation for this class was generated from the following file: