@Test public void supports() { SocialAuthenticationProvider provider = new SocialAuthenticationProvider(null, null); assertTrue(provider.supports(SocialAuthenticationToken.class)); assertFalse(provider.supports(Authentication.class)); }
public boolean supports(Class<? extends Object> authentication) { return SocialAuthenticationToken.class.isAssignableFrom(authentication); }
SocialAuthenticationProvider implements AuthenticationProvider { public boolean supports(Class<? extends Object> authentication) { return SocialAuthenticationToken.class.isAssignableFrom(authentication); } }
SocialAuthenticationProvider implements AuthenticationProvider { public boolean supports(Class<? extends Object> authentication) { return SocialAuthenticationToken.class.isAssignableFrom(authentication); } SocialAuthenticationProvider(UsersConnectionRepository usersConnectionRepository, SocialUserDetailsService userDetailsService); }
SocialAuthenticationProvider implements AuthenticationProvider { public boolean supports(Class<? extends Object> authentication) { return SocialAuthenticationToken.class.isAssignableFrom(authentication); } SocialAuthenticationProvider(UsersConnectionRepository usersConnectionRepository, SocialUserDetailsService userDetailsService); boolean supports(Class<? extends Object> authentication); Authentication authenticate(Authentication authentication); }
SocialAuthenticationProvider implements AuthenticationProvider { public boolean supports(Class<? extends Object> authentication) { return SocialAuthenticationToken.class.isAssignableFrom(authentication); } SocialAuthenticationProvider(UsersConnectionRepository usersConnectionRepository, SocialUserDetailsService userDetailsService); boolean supports(Class<? extends Object> authentication); Authentication authenticate(Authentication authentication);  }