◆ __construct()
__construct |
( |
array |
$keys | ) |
|
- Paramètres
-
- Exceptions
-
InvalidArgumentException | if the list is invalid |
Références $key, et JWKSet\$keys.
◆ all()
◆ canKeyBeUsedFor()
canKeyBeUsedFor |
( |
string |
$type, |
|
|
JWK |
$key |
|
) |
| |
|
private |
- Exceptions
-
InvalidArgumentException | if the key does not fulfill with the "key_ops" constraint |
- Renvoie
- bool|int
Références $key, et $type.
Référencé par JWKSet\selectKey().
◆ canKeyBeUsedWithAlgorithm()
canKeyBeUsedWithAlgorithm |
( |
?Algorithm |
$algorithm, |
|
|
JWK |
$key |
|
) |
| |
|
private |
◆ convertKeyOpsToKeyUse()
static convertKeyOpsToKeyUse |
( |
array |
$key_ops | ) |
|
|
staticprivate |
- Exceptions
-
InvalidArgumentException | if the key operation is not supported |
◆ count()
count |
( |
|
$mode = COUNT_NORMAL | ) |
|
◆ createFromJson()
static createFromJson |
( |
string |
$json | ) |
|
|
static |
Creates a JWKSet object using the given Json string.
- Exceptions
-
InvalidArgumentException | if the data is not valid |
- Renvoie
- JWKSet
Références $data.
◆ createFromKeyData()
static createFromKeyData |
( |
array |
$data | ) |
|
|
static |
Creates a JWKSet object using the given values.
- Exceptions
-
InvalidArgumentException | if the keyset is not valid |
- Renvoie
- JWKSet
Références $data, et $key.
◆ doesKeySatisfyRestrictions()
doesKeySatisfyRestrictions |
( |
array |
$restrictions, |
|
|
JWK |
$key |
|
) |
| |
|
private |
◆ get()
Returns the key with the given index. Throws an exception if the index is not present in the key store.
- Paramètres
-
- Exceptions
-
InvalidArgumentException | if the index is not defined |
Références JWKSet\has().
◆ getIterator()
Internal method only. Should not be used.
◆ has()
◆ jsonSerialize()
Returns the values to be serialized.
◆ selectKey()
selectKey |
( |
string |
$type, |
|
|
?Algorithm |
$algorithm = null , |
|
|
array |
$restrictions = [] |
|
) |
| |
◆ sortKeys()
static sortKeys |
( |
array |
$a, |
|
|
array |
$b |
|
) |
| |
|
static |
Internal method only. Should not be used.
Références $b.
◆ with()
◆ without()
Remove key from the key set. This method is immutable and will return a new object.
- Paramètres
-
int | string | $key | Key to remove from the key set |
- Renvoie
- JWKSet
Références $key, $this, et JWKSet\has().
◆ $keys
La documentation de cette classe a été générée à partir du fichier suivant :