protected function _checkSignatureAlgoAndKey(
        SignatureAlgorithmIdentifier $sig_algo, AlgorithmIdentifier $key_algo)
    {
        if (!$sig_algo->supportsKeyAlgorithm($key_algo)) {
            throw new \UnexpectedValueException(
                sprintf(
                    'Signature algorithm %s does not support key algorithm %s.',
                    $sig_algo->name(), $key_algo->name()));
        }
    }
protected function _checkSignatureAlgoAndKey(
        SignatureAlgorithmIdentifier $sig_algo, AlgorithmIdentifier $key_algo)
    {
        if (!$sig_algo->supportsKeyAlgorithm($key_algo)) {
            throw new \UnexpectedValueException(
                sprintf(
                    'Signature algorithm %s does not support key algorithm %s.',
                    $sig_algo->name(), $key_algo->name()));
        }
    }
protected function _checkSignatureAlgoAndKey ( SignatureAlgorithmIdentifier $ sig_algo , AlgorithmIdentifier $ key_algo ) { if ( ! $ sig_algo -> supportsKeyAlgorithm ( $ key_algo ) ) { throw new \ UnexpectedValueException ( sprintf ( 'Signature algorithm %s does not support key algorithm %s.' , $ sig_algo -> name ( ) , $ key_algo -> name ( ) ) ) ; } }
Check that given signature algorithm supports key of given type.

@param SignatureAlgorithmIdentifier $sig_algo Signature algorithm
@param AlgorithmIdentifier $key_algo Key algorithm
@throws \UnexpectedValueException If key is not supported
Check that given signature algorithm supports key of given type .