@Test public void shouldSupportJwkAuthentication() throws Exception { JwtAuthenticationProvider provider = new JwtAuthenticationProvider("secret".getBytes(), "test-issuer", "test-audience"); assertThat(provider.supports(AuthenticationJsonWebToken.class), is(true)); }
@Override public boolean supports(Class<?> authentication) { return JwtAuthentication.class.isAssignableFrom(authentication); }
JwtAuthenticationProvider implements AuthenticationProvider { @Override public boolean supports(Class<?> authentication) { return JwtAuthentication.class.isAssignableFrom(authentication); } }
JwtAuthenticationProvider implements AuthenticationProvider { @Override public boolean supports(Class<?> authentication) { return JwtAuthentication.class.isAssignableFrom(authentication); } JwtAuthenticationProvider(byte[] secret, String issuer, String audience);  JwtAuthenticationProvider(JwkProvider jwkProvider, String issuer, String audience);  JwtAuthenticationProvider(byte[] secret, String[] issuers, String audience);  JwtAuthenticationProvider(JwkProvider jwkProvider,  String[] issuers, String audience); }
JwtAuthenticationProvider implements AuthenticationProvider { @Override public boolean supports(Class<?> authentication) { return JwtAuthentication.class.isAssignableFrom(authentication); } JwtAuthenticationProvider(byte[] secret, String issuer, String audience);  JwtAuthenticationProvider(JwkProvider jwkProvider, String issuer, String audience);  JwtAuthenticationProvider(byte[] secret, String[] issuers, String audience);  JwtAuthenticationProvider(JwkProvider jwkProvider,  String[] issuers, String audience); @Override boolean supports(Class<?> authentication); @Override Authentication authenticate(Authentication authentication); @SuppressWarnings("unused") JwtAuthenticationProvider withJwtVerifierLeeway(long leeway); }
JwtAuthenticationProvider implements AuthenticationProvider { @Override public boolean supports(Class<?> authentication) { return JwtAuthentication.class.isAssignableFrom(authentication); } JwtAuthenticationProvider(byte[] secret, String issuer, String audience);  JwtAuthenticationProvider(JwkProvider jwkProvider, String issuer, String audience);  JwtAuthenticationProvider(byte[] secret, String[] issuers, String audience);  JwtAuthenticationProvider(JwkProvider jwkProvider,  String[] issuers, String audience); @Override boolean supports(Class<?> authentication); @Override Authentication authenticate(Authentication authentication); @SuppressWarnings("unused") JwtAuthenticationProvider withJwtVerifierLeeway(long leeway);  }