protected function supportsKey($key)
    {
        // OpenSSL 0.9.8+
        $keyDetails = openssl_pkey_get_details($key);

        return isset($keyDetails['type']) ? $this->getSupportedPrivateKeyType() === $keyDetails['type'] : false;
    }
protected function supportsKey($key)
    {
        // OpenSSL 0.9.8+
        $keyDetails = openssl_pkey_get_details($key);

        return isset($keyDetails['type']) ? $this->getSupportedPrivateKeyType() === $keyDetails['type'] : false;
    }
protected function supportsKey ( $ key ) { // OpenSSL 0.9.8+ $ keyDetails = openssl_pkey_get_details ( $ key ) ; return isset ( $ keyDetails [ 'type' ] ) ? $ this -> getSupportedPrivateKeyType ( ) === $ keyDetails [ 'type' ] : false ; }
Check if the key is supported by this signer.

@param resource $key Public or private key

@return bool
Check if the key is supported by this signer .