public function JwtTranscoderInterface::setPublicKey in JSON Web Token Authentication (JWT) 8.0
Same name and namespace in other branches
- 8 src/Transcoder/JwtTranscoderInterface.php \Drupal\jwt\Transcoder\JwtTranscoderInterface::setPublicKey()
Sets the public key used to verify signatures for an asymmetric algorithm.
This key is only used when an asymmetric algorithm is selected. Currently supported asymmetric algorithms are:
- RS256
Parameters
string $public_key: A PEM encoded public key.
Return value
mixed Function does some validation of the key. Returns TRUE on success.
1 method overrides JwtTranscoderInterface::setPublicKey()
- JwtTranscoder::setPublicKey in src/
Transcoder/ JwtTranscoder.php - Sets the public key used to verify signatures for an asymmetric algorithm.
File
- src/
Transcoder/ JwtTranscoderInterface.php, line 92
Class
- JwtTranscoderInterface
- Interface JwtTranscoderInterface.
Namespace
Drupal\jwt\TranscoderCode
public function setPublicKey($public_key);