'Validate the provided params.'

def validate(self):

    super(RBACPolicy, self).validate()
    action = self.properties[self.ACTION]
    obj_type = self.properties[self.OBJECT_TYPE]
    if (obj_type not in self.SUPPORTED_TYPES_ACTIONS):
        msg = (_('Invalid    object_type:    %(obj_type)s.    Valid    object_type    :%(value)s') % {'obj_type': obj_type, 'value': self.SUPPORTED_TYPES_ACTIONS.keys()})
        raise exception.StackValidationFailed(message=msg)
    if (action not in self.SUPPORTED_TYPES_ACTIONS[obj_type]):
        msg = (_('Invalid    action    %(action)s    for    object    type    %(obj_type)s.    Valid    actions    :%(value)s') % {'action': action, 'obj_type': obj_type, 'value': self.SUPPORTED_TYPES_ACTIONS[obj_type]})
        raise exception.StackValidationFailed(message=msg)
