@Test public void testSupports() { assertFalse(authProviderService.supports(String.class)); assertTrue(authProviderService.supports(UsernamePasswordAuthenticationToken.class)); }
@Override public boolean supports(Class<?> aClass) { return aClass.equals(UsernamePasswordAuthenticationToken.class); }
AuthProviderService implements AuthenticationProvider { @Override public boolean supports(Class<?> aClass) { return aClass.equals(UsernamePasswordAuthenticationToken.class); } }
AuthProviderService implements AuthenticationProvider { @Override public boolean supports(Class<?> aClass) { return aClass.equals(UsernamePasswordAuthenticationToken.class); }  }
AuthProviderService implements AuthenticationProvider { @Override public boolean supports(Class<?> aClass) { return aClass.equals(UsernamePasswordAuthenticationToken.class); }  @Override Authentication authenticate(Authentication authentication); @Override boolean supports(Class<?> aClass); }
AuthProviderService implements AuthenticationProvider { @Override public boolean supports(Class<?> aClass) { return aClass.equals(UsernamePasswordAuthenticationToken.class); }  @Override Authentication authenticate(Authentication authentication); @Override boolean supports(Class<?> aClass);  }