Jose\LoaderInterface::load PHP Метод

load() публичный Метод

If the result is a JWE (list), nothing is decrypted and method decrypt must be executed If the result is a JWS (list), no signature is verified and method verifySignature must be executed.
public load ( string $input ) : Jose\Object\JWSInterface | Jose\Object\JWEInterface
$input string A string that represents a JSON Web Token message
Результат Jose\Object\JWSInterface | Jose\Object\JWEInterface If the data has been loaded.
    public function load($input);

Usage Example

Пример #1
0
 /**
  * @param \Jose\Object\JWEInterface    $jwe
  * @param \Jose\Object\JWKSetInterface $encryption_key_set
  *
  * @return \Jose\Object\JWSInterface
  */
 private function decryptAssertion(Object\JWEInterface $jwe, Object\JWKSetInterface $encryption_key_set)
 {
     $this->decrypter->decryptUsingKeySet($jwe, $encryption_key_set);
     $jws = $this->loader->load($jwe->getPayload());
     Assertion::isInstanceOf($jws, Object\JWSInterface::class, 'The encrypted assertion does not contain a JWS.');
     return $jws;
 }
All Usage Examples Of Jose\LoaderInterface::load