@Test public void shouldReturnItselfWhenChangingJWTVerifierLeeway() throws Exception { JwtAuthenticationProvider provider = new JwtAuthenticationProvider("secret".getBytes(), "test-issuer", "test-audience"); JwtAuthenticationProvider provider2 = provider.withJwtVerifierLeeway(1234); assertThat(provider2, is(provider)); }
@SuppressWarnings("unused") public JwtAuthenticationProvider withJwtVerifierLeeway(long leeway) { this.leeway = leeway; return this; }
JwtAuthenticationProvider implements AuthenticationProvider { @SuppressWarnings("unused") public JwtAuthenticationProvider withJwtVerifierLeeway(long leeway) { this.leeway = leeway; return this; } }
JwtAuthenticationProvider implements AuthenticationProvider { @SuppressWarnings("unused") public JwtAuthenticationProvider withJwtVerifierLeeway(long leeway) { this.leeway = leeway; return this; } 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 { @SuppressWarnings("unused") public JwtAuthenticationProvider withJwtVerifierLeeway(long leeway) { this.leeway = leeway; return this; } 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 { @SuppressWarnings("unused") public JwtAuthenticationProvider withJwtVerifierLeeway(long leeway) { this.leeway = leeway; return this; } 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);  }