November 2017
Intermediate to advanced
542 pages
14h 24m
English
The AnonymousAuthenticationFilter class had the default constructor and the setKey and setPrincipal methods removed in favor of the constructor injection. For example, take a look at the following code snippet:
AnonymousAuthenticationFilter filter = new AnonymousAuthenticationFilter(); filter.setKey(key); filter.setUserAttribute(attrs);
This should be replaced with the following code:
AnonymousAuthenticationFilter filter = new AnonymousAuthenticationFilter(key,attrs.getPassword(), attrs.getAuthorities());
Read now
Unlock full access