Class-based security/logout processor

#11437