'Return a saml.Condition instance
:param sp_entity_id: The SP entity ID
:return: A saml.Condition instance'

def conditions(self, sp_entity_id):

    return factory(saml.Conditions, not_before=instant(), not_on_or_after=self.not_on_or_after(sp_entity_id), audience_restriction=[factory(saml.AudienceRestriction, audience=[factory(saml.Audience, text=sp_entity_id)])])
