Get public key from metadata.
public getPublicKeys ( string | null $use = null, boolean $required = false, string $prefix = '' ) : array | null | ||
$use | string | null | The purpose this key can be used for. (encryption or signing). |
$required | boolean | Whether the public key is required. If this is true, a missing key will cause an exception. Default is false. |
$prefix | string | The prefix which should be used when reading from the metadata array. Defaults to ''. |
return | array | null | Public key data, or null if no public key or was found. |