PublicKey
MMO\oauth\keys · 1 symbole · générée le 27 Oct 2026
PublicKey
PublicKey.php:13- Espace de noms
MMO\oauth\keys- Étend
- aKey
- Implémente
- iPublicKey
Index
| encrypt($data) | Encrypt data using AES256. | |
| FromJWK($jwk) static | Parse a JSON Web key (JWK) | |
| FromJWKs($jwks) static | Parse a set of JWK keys | |
| toPEM() | Extract the public key as a PEM | |
| verify($msg, $signature, $algorithm) | Verify a signature with the message, key and method. | |
| __construct($key) | ||
| __toString() |
Méthodes7
encrypt($data)
PublicKey.php:106Encrypt data using AES256.
| $data | string | |
| retourne | base 64 encoded string |
FromJWK($jwk)
staticPublicKey.php:30Parse a JSON Web key (JWK)
FromJWKs($jwks)
staticPublicKey.php:62Parse a set of JWK keys
toPEM()
PublicKey.php:83Extract the public key as a PEM
| retourne | string |
verify($msg, $signature, $algorithm)
PublicKey.php:97Verify a signature with the message, key and method. Not all methods are symmetric, so we must have a separate verify and sign method.
__construct($key)
PublicKey.php:14| $key | OpenSSLAsymmetricKey | OpenSSLCertificate | array | string |
__toString()
PublicKey.php:75| retourne | string |