@Test public void shouldCreateHS256Configurer() throws Exception { JwtWebSecurityConfigurer configurer = JwtWebSecurityConfigurer.forHS256("audience", "issuer", "secret".getBytes()); assertThat(configurer, is(notNullValue())); assertThat(configurer.audience, is("audience")); assertThat(configurer.issuers, arrayWithSize(1)); assertThat(configurer.issuers, arrayContaining("issuer")); assertThat(configurer.provider, is(notNullValue())); assertThat(configurer.provider, is(instanceOf(JwtAuthenticationProvider.class))); }
@SuppressWarnings({"WeakerAccess", "SameParameterValue"}) public static JwtWebSecurityConfigurer forHS256(String audience, String issuer, byte[] secret) { return forHS256(audience, new String[]{issuer}, secret); }
JwtWebSecurityConfigurer { @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) public static JwtWebSecurityConfigurer forHS256(String audience, String issuer, byte[] secret) { return forHS256(audience, new String[]{issuer}, secret); } }
JwtWebSecurityConfigurer { @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) public static JwtWebSecurityConfigurer forHS256(String audience, String issuer, byte[] secret) { return forHS256(audience, new String[]{issuer}, secret); } private  JwtWebSecurityConfigurer(String audience, String[] issuers, AuthenticationProvider authenticationProvider); }
JwtWebSecurityConfigurer { @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) public static JwtWebSecurityConfigurer forHS256(String audience, String issuer, byte[] secret) { return forHS256(audience, new String[]{issuer}, secret); } private  JwtWebSecurityConfigurer(String audience, String[] issuers, AuthenticationProvider authenticationProvider); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forRS256(String audience, String issuer); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forRS256(String audience, String issuer, AuthenticationProvider provider); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forRS256(String audience, String[] issuers); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forRS256(String audience, String[] issuers, AuthenticationProvider provider); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forHS256WithBase64Secret(String audience, String issuer, String secret); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forHS256(String audience, String issuer, byte[] secret); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forHS256(String audience, String issuer, AuthenticationProvider provider); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forHS256WithBase64Secret(String audience, String[] issuers, String secret); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forHS256(String audience, String[] issuers, byte[] secret); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forHS256(String audience, String[] issuers, AuthenticationProvider provider); @SuppressWarnings("unused") HttpSecurity configure(HttpSecurity http); }
JwtWebSecurityConfigurer { @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) public static JwtWebSecurityConfigurer forHS256(String audience, String issuer, byte[] secret) { return forHS256(audience, new String[]{issuer}, secret); } private  JwtWebSecurityConfigurer(String audience, String[] issuers, AuthenticationProvider authenticationProvider); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forRS256(String audience, String issuer); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forRS256(String audience, String issuer, AuthenticationProvider provider); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forRS256(String audience, String[] issuers); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forRS256(String audience, String[] issuers, AuthenticationProvider provider); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forHS256WithBase64Secret(String audience, String issuer, String secret); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forHS256(String audience, String issuer, byte[] secret); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forHS256(String audience, String issuer, AuthenticationProvider provider); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forHS256WithBase64Secret(String audience, String[] issuers, String secret); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forHS256(String audience, String[] issuers, byte[] secret); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static JwtWebSecurityConfigurer forHS256(String audience, String[] issuers, AuthenticationProvider provider); @SuppressWarnings("unused") HttpSecurity configure(HttpSecurity http);  }