Added basic CAS 2.0 protocol support (only validation for now).