It is recommended to use the net.sf.acegisecurity.ui.webapp package for standard web applications, as it has much lower configuration complexity.
net.sf.acegisecurity.ui.webapp
Configured in the bean context with a key that should match the key used by adapters to generate AuthByAdapter instances.
AuthByAdapter
Principal