@Test public void should_not_support_UsernamePasswordAuthenticationToken() { assertThat(jwtBearerAuthenticationProvider.supports(UsernamePasswordAuthenticationToken.class), is(false)); }
@Override public boolean supports(Class<?> authentication) { return (JWTBearerAssertionAuthenticationToken.class.isAssignableFrom(authentication)); }
JWTBearerAuthenticationProvider implements AuthenticationProvider { @Override public boolean supports(Class<?> authentication) { return (JWTBearerAssertionAuthenticationToken.class.isAssignableFrom(authentication)); } }
JWTBearerAuthenticationProvider implements AuthenticationProvider { @Override public boolean supports(Class<?> authentication) { return (JWTBearerAssertionAuthenticationToken.class.isAssignableFrom(authentication)); }  }
JWTBearerAuthenticationProvider implements AuthenticationProvider { @Override public boolean supports(Class<?> authentication) { return (JWTBearerAssertionAuthenticationToken.class.isAssignableFrom(authentication)); }  @Override Authentication authenticate(Authentication authentication); @Override boolean supports(Class<?> authentication); }
JWTBearerAuthenticationProvider implements AuthenticationProvider { @Override public boolean supports(Class<?> authentication) { return (JWTBearerAssertionAuthenticationToken.class.isAssignableFrom(authentication)); }  @Override Authentication authenticate(Authentication authentication); @Override boolean supports(Class<?> authentication);  }