class RsaSigner implements Signer

Methods

string
algorithmId()

Return the JWT algorithm identifier.

string
sign(string $payload, Key $key)

Sign the payload with the supplied key.

bool
verify(string $expected, string $payload, Key $key)

Verify the signature with the supplied key.

Details

at line 19
string algorithmId()

Return the JWT algorithm identifier.

Return Value

string

at line 30
string sign(string $payload, Key $key)

Sign the payload with the supplied key.

Parameters

string $payload
Key $key

Return Value

string

at line 49
bool verify(string $expected, string $payload, Key $key)

Verify the signature with the supplied key.

Parameters

string $expected
string $payload
Key $key

Return Value

bool