public function UsersKey::__construct in JSON Web Token Authentication (JWT) 8
UsersKey constructor.
Parameters
int $uid: A user ID.
string $id: A key ID.
string $alg: A key algorithm like RS256.
string $pubkey: The value of a public key, e.g. RSA or Ed25519.
File
- modules/
users_jwt/ src/ UsersKey.php, line 52
Class
- UsersKey
- Class UsersKey
Namespace
Drupal\users_jwtCode
public function __construct($uid = NULL, $id = NULL, $alg = NULL, $pubkey = NULL) {
if ($uid) {
$this->uid = (int) $uid;
}
if ($id) {
$this->id = trim((string) $id);
}
if ($alg) {
$this->alg = trim((string) $alg);
}
if ($pubkey) {
$this->pubkey = trim((string) $pubkey);
}
}