PHP 인터페이스 Jose\Object\JWKSetInterface

상속: extends Countable, extends Iterator, extends JsonSerializable, extends ArrayAccess
파일 보기 프로젝트 열기: spomky-labs/jose 0 사용 예제들

공개 메소드들

메소드 설명
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[]