November 2017
Intermediate to advanced
542 pages
14h 24m
English
The AuthenticationDetailsSourceImpl class was deprecated in favor of writing a custom AuthenticationDetailsSource. For example, you may have the following:
AuthenticationDetailsSourceImpl source = new AuthenticationDetailsSourceImpl(); source.setClazz(CustomWebAuthenticationDetails.class);
You should implement the AuthenticationDetailsSource class directly to return the CustomSource object:
public class CustomWebAuthenticationDetailsSource implements AuthenticationDetailsSource<HttpServletRequest, WebAuthenticationDetails> { public WebAuthenticationDetails buildDetails(HttpServletRequest context) { return new CustomWebAuthenticationDetails(context); }}
Read now
Unlock full access