PHP Интерфейс Jose\Object\JWKSetInterface

Наследование: extends Countable, extends Iterator, extends JsonSerializable, extends ArrayAccess
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
addKey ( Jose\Object\JWKInterface $key ) Add key in the key set.
countKeys ( ) : integer
getKey ( $index ) : Jose\Object\JWKInterface
getKeys ( ) : Jose\Object\JWKInterface[] Returns all keys in the key set.
hasKey ( $index ) : boolean
removeKey ( integer $index ) Remove key from the key set.
selectKey ( string $type, string | null $algorithm = null, array $restrictions = [] ) : Jose\Object\JWKInterface | null
toPEM ( ) : string[] Returns RSA/EC keys in the key set into PEM format Note that if the key set contains other key types (none, oct, OKP.

Описание методов

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

Add key in the key set.
public addKey ( Jose\Object\JWKInterface $key )
$key Jose\Object\JWKInterface

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

public countKeys ( ) : integer
Результат integer

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

public getKey ( $index ) : Jose\Object\JWKInterface
$index
Результат Jose\Object\JWKInterface

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

Returns all keys in the key set.
public getKeys ( ) : Jose\Object\JWKInterface[]
Результат Jose\Object\JWKInterface[] An array of keys stored in the key set

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

public hasKey ( $index ) : boolean
$index
Результат boolean

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

Remove key from the key set.
public removeKey ( integer $index )
$index integer Key to remove from the key set

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

public selectKey ( string $type, string | null $algorithm = null, array $restrictions = [] ) : Jose\Object\JWKInterface | null
$type string Must be 'sig' (signature) or 'enc' (encryption)
$algorithm string | null Specifies the algorithm to be used
$restrictions array More restrictions such as 'kid' or 'kty'
Результат Jose\Object\JWKInterface | null

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

..), they will not be part of the result. If keys have a key ID, it is used as index.
public toPEM ( ) : string[]
Результат string[]