Using Agent as parameterized type for the AuthenticationManager

See https://issues.jboss.org/browse/AGPUSH-356