PHP Class Jose\Object\StorableJWKSet

Inheritance: implements Jose\Object\StorableInterface, implements Jose\Object\JWKSetInterface, use trait Storable, use trait JWKSetPEM
Datei anzeigen Open project: spomky-labs/jose

Protected Properties

Property Type Description
$nb_keys integer
$parameters array

Public Methods

Method Description
__construct ( string $filename, array $parameters, integer $nb_keys ) StorableJWKSet constructor.
addKey ( Jose\Object\JWKInterface $key )
count ( )
countKeys ( )
current ( )
getKey ( $index )
getKeys ( )
hasKey ( $index )
jsonSerialize ( )
key ( )
next ( )
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
removeKey ( $index )
rewind ( )
selectKey ( $type, $algorithm = null, array $restrictions = [] )
valid ( )

Protected Methods

Method Description
createJWK ( ) : Jose\Object\JWKInterface
createNewObject ( ) This method creates the JWKSet and populate it with keys.
createObjectFromFileContent ( array $file_content ) : JsonSerializable
getJWKSet ( ) : Jose\Object\JWKSetInterface

Method Details

__construct() public method

StorableJWKSet constructor.
public __construct ( string $filename, array $parameters, integer $nb_keys )
$filename string
$parameters array
$nb_keys integer

addKey() public method

public addKey ( Jose\Object\JWKInterface $key )
$key Jose\Object\JWKInterface

count() public method

public count ( )

countKeys() public method

public countKeys ( )

createJWK() protected method

protected createJWK ( ) : Jose\Object\JWKInterface
return Jose\Object\JWKInterface

createNewObject() protected method

This method creates the JWKSet and populate it with keys.
protected createNewObject ( )

createObjectFromFileContent() protected method

protected createObjectFromFileContent ( array $file_content ) : JsonSerializable
$file_content array
return JsonSerializable

current() public method

public current ( )

getJWKSet() protected method

protected getJWKSet ( ) : Jose\Object\JWKSetInterface
return Jose\Object\JWKSetInterface

getKey() public method

public getKey ( $index )

getKeys() public method

public getKeys ( )

hasKey() public method

public hasKey ( $index )

jsonSerialize() public method

public jsonSerialize ( )

key() public method

public key ( )

next() public method

public next ( )

offsetExists() public method

public offsetExists ( $offset )

offsetGet() public method

public offsetGet ( $offset )

offsetSet() public method

public offsetSet ( $offset, $value )

offsetUnset() public method

public offsetUnset ( $offset )

removeKey() public method

public removeKey ( $index )

rewind() public method

public rewind ( )

selectKey() public method

public selectKey ( $type, $algorithm = null, array $restrictions = [] )
$restrictions array

valid() public method

public valid ( )

Property Details

$nb_keys protected_oe property

protected int $nb_keys
return integer

$parameters protected_oe property

protected array $parameters
return array