5use InvalidArgumentException;
6use OpenSSLAsymmetricKey;
31 throw new TypeError(
'Key material must be a string, resource, or OpenSSLAsymmetricKey');
35 throw new InvalidArgumentException(
'Key material must not be empty');
39 throw new InvalidArgumentException(
'Algorithm must not be empty');
getAlgorithm()
Return the algorithm valid for this key.
__construct( $keyMaterial, string $algorithm)