protected static function JwtHsKeyType::getAlgorithmKeysize in JSON Web Token Authentication (JWT) 8
Same name and namespace in other branches
- 8.0 src/Plugin/KeyType/JwtHsKeyType.php \Drupal\jwt\Plugin\KeyType\JwtHsKeyType::getAlgorithmKeysize()
Get keysizes for the various algorithms.
Return value
array An array key keysizes.
1 call to JwtHsKeyType::getAlgorithmKeysize()
- JwtHsKeyType::generateKeyValue in src/
Plugin/ KeyType/ JwtHsKeyType.php - Generate a key value of this type using the submitted configuration.
File
- src/
Plugin/ KeyType/ JwtHsKeyType.php, line 112
Class
- JwtHsKeyType
- Defines a key type for JWT HMAC Signatures.
Namespace
Drupal\jwt\Plugin\KeyTypeCode
protected static function getAlgorithmKeysize() {
return [
'HS256' => 512,
'HS384' => 1024,
'HS512' => 1024,
];
}