SAMLEntryPoint extends GenericFilterBean implements AuthenticationEntryPoint { protected WebSSOProfileOptions getProfileOptions(SAMLMessageContext context, AuthenticationException exception) throws MetadataProviderException { WebSSOProfileOptions ssoProfileOptions; if (defaultOptions != null) { ssoProfileOptions = defaultOptions.clone(); } else { ssoProfileOptions = new WebSSOProfileOptions(); } return ssoProfileOptions; }  void doFilter(ServletRequest request, ServletResponse response, FilterChain chain); void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException e); void setDefaultProfileOptions(WebSSOProfileOptions defaultOptions); @Autowired @Qualifier("webSSOprofile") void setWebSSOprofile(WebSSOProfile webSSOprofile); @Autowired(required = false) @Qualifier("ecpprofile") void setWebSSOprofileECP(WebSSOProfile webSSOprofileECP); @Autowired(required = false) @Qualifier("hokWebSSOProfile") void setWebSSOprofileHoK(WebSSOProfile webSSOprofileHoK); @Autowired void setSamlLogger(SAMLLogger samlLogger); @Autowired(required = false) void setSamlDiscovery(SAMLDiscovery samlDiscovery); @Autowired void setContextProvider(SAMLContextProvider contextProvider); @Autowired void setMetadata(MetadataManager metadata); String getFilterProcessesUrl(); void setFilterProcessesUrl(String filterProcessesUrl); @Override void afterPropertiesSet(); static final String FILTER_URL; static final String IDP_PARAMETER; static final String DISCOVERY_RESPONSE_PARAMETER; }
@Test public void testInitialProfileOptions() throws Exception { WebSSOProfileOptions ssoProfileOptions = entryPoint.getProfileOptions(new SAMLMessageContext(), null); assertEquals(new Integer(2), ssoProfileOptions.getProxyCount()); assertTrue(ssoProfileOptions.isIncludeScoping()); assertFalse(ssoProfileOptions.getForceAuthN()); assertFalse(ssoProfileOptions.getPassive()); assertNull(ssoProfileOptions.getBinding()); }