@classmethod
def validate_dependency_registration(cls, params, name):
    """
        Validate required parameters for dependency file

        :param params: parameters related to the dependency file
        :param name: name of the dependency file
        :raises ValueError: if some of the required parameters are missing,
                            or some of the parameters are invalid
        """
    mandatory = ['Dependency-Version']
    cls._check_mandatory_params(params, mandatory)
    perm = params.get('Dependency-Permissions')
    if perm is not None:
        try:
            perm_int = int(perm, 8)
        except ValueError:
            raise ValueError('Dependency permission is incorrect')
        if perm_int & int('600', 8) != int('600', 8):
            raise ValueError('The owner should have rw permission')
