private function assertValidKeyConfiguration(KeyConfiguration $keyConfig)
    {
        if (empty($keyConfig->getHashAlgorithm()) || empty($keyConfig->getSalt()) || empty($keyConfig->getCost())) {
            throw new InvalidKeyConfigurationException();
        }

        $this->assertValidHashAlgorithm($keyConfig);
    }
private function assertValidKeyConfiguration(KeyConfiguration $keyConfig)
    {
        if (empty($keyConfig->getHashAlgorithm()) || empty($keyConfig->getSalt()) || empty($keyConfig->getCost())) {
            throw new InvalidKeyConfigurationException();
        }

        $this->assertValidHashAlgorithm($keyConfig);
    }
private function assertValidKeyConfiguration ( KeyConfiguration $ keyConfig ) { if ( empty ( $ keyConfig -> getHashAlgorithm ( ) ) || empty ( $ keyConfig -> getSalt ( ) ) || empty ( $ keyConfig -> getCost ( ) ) ) { throw new InvalidKeyConfigurationException ( ) ; } $ this -> assertValidHashAlgorithm ( $ keyConfig ) ; }
Assert that key configuration is valid.

@param KeyConfiguration $keyConfig

@throws InvalidKeyConfigurationException
@throws UnknownHashAlgorithmException
Assert that key configuration is valid .