PublicKey
MMO\oauth\keys · 1 symbol · generated 27 Oct 2026
PublicKey
PublicKey.php:13- Namespace
MMO\oauth\keys- Extends
- aKey
- Implements
- 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() |
Methods7
encrypt($data)
PublicKey.php:106Encrypt data using AES256.
| $data | string | |
| returns | 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
| returns | 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| returns | string |