A generator and verifier of opaque identifier tokens.
An opaque identifer token is a string which identifies something in SimpleID (e.g. a user), but encoded so that it provides no information to the recipient about the thing it identifies.
An opaque identifier is generated by encoding a SimpleID identifier with a context array. The context array contains recipient-specific data so that the opaque identifier is bound to the recipient.
| Methods | ||
|---|---|---|
public
|
__construct()
|
# |
public
|
verify(string $token, string $expected_id, array<mixed> $context = []): bool
|
# |
public
|
generate(string $id, array<mixed> $context = []): string
|
# |
protected
|
formatArray(array<string, string> $array): string
|
# |