PHP Interface Jose\Object\JWKInterface

Inheritance: extends JsonSerializable
Datei anzeigen Open project: spomky-labs/jose Interface Usage Examples

Public Methods

Method Description
get ( string $key ) : mixed | null Get the value with a specific key.
getAll ( ) : array Get all values stored in the JWK object.
has ( string $key ) : boolean Returns true if the JWK has the value identified by.
thumbprint ( string $hash_algorithm ) : string Returns the thumbprint of the key.
toPublic ( ) : Jose\Object\JWKInterface

Method Details

get() public method

Get the value with a specific key.
public get ( string $key ) : mixed | null
$key string The key
return mixed | null The value

getAll() public method

Get all values stored in the JWK object.
public getAll ( ) : array
return array Values of the JWK object

has() public method

Returns true if the JWK has the value identified by.
public has ( string $key ) : boolean
$key string The key
return boolean

thumbprint() public method

Returns the thumbprint of the key.
See also: https://tools.ietf.org/html/rfc7638
public thumbprint ( string $hash_algorithm ) : string
$hash_algorithm string
return string

toPublic() public method

public toPublic ( ) : Jose\Object\JWKInterface
return Jose\Object\JWKInterface