Railgun JWT

SecLibJwkSetLoader
in package
implements JwkSetLoader

Provides a JwkSetLoader implementation that uses SecLibJwk as its backend.

Table of Contents

Interfaces

JwkSetLoader
Provides an interface for loading JwkSet instances.

Methods

loadJwkSet()  : JwkSet
Creates a JwkSet instance from given data.

Methods

loadJwkSet()

Creates a JwkSet instance from given data.

public loadJwkSet(mixed $jwks) : JwkSet

The following are all valid ways to call this method:

  • Relative path: loadJwkSet('jwks.json');
  • Absolute path: loadJwkSet('/absolute/path/to/jwks.json');
  • File URL: loadJwkSet('file:///path/to/jwks.json');
  • HTTP URL: loadJwkSet('https://railgun.sh/openid/jwks.json');
  • Encoded JSON Object: loadJwkSet('{"keys": [...]}');
  • PHP Associative array: loadJwkSet(['keys' => [...]]);
  • PHP Object: loadJwkSet(new class { public $keys = [...]; });
Parameters
$jwks : mixed

JWKs to decode. May be a path, any URL format the underlying implementation may understand, encoded JSON object or PHP object/associative array.

Return values
JwkSet

        
On this page

Search results