@Test public void withClientSecret() { String clientSecret = "theClientSecret"; OAuth2ServiceConfiguration configuration = cut.withClientSecret(clientSecret).build(); assertThat(configuration.getClientSecret()).isEqualTo(clientSecret); }
public OAuth2ServiceConfigurationBuilder withClientSecret(String clientSecret) { properties.put(CLIENT_SECRET, clientSecret); return this; }
OAuth2ServiceConfigurationBuilder { public OAuth2ServiceConfigurationBuilder withClientSecret(String clientSecret) { properties.put(CLIENT_SECRET, clientSecret); return this; } }
OAuth2ServiceConfigurationBuilder { public OAuth2ServiceConfigurationBuilder withClientSecret(String clientSecret) { properties.put(CLIENT_SECRET, clientSecret); return this; } private  OAuth2ServiceConfigurationBuilder(); }
OAuth2ServiceConfigurationBuilder { public OAuth2ServiceConfigurationBuilder withClientSecret(String clientSecret) { properties.put(CLIENT_SECRET, clientSecret); return this; } private  OAuth2ServiceConfigurationBuilder(); static OAuth2ServiceConfigurationBuilder forService(@Nonnull Service service); static OAuth2ServiceConfigurationBuilder fromConfiguration(OAuth2ServiceConfiguration baseConfiguration); OAuth2ServiceConfigurationBuilder withClientId(String clientId); OAuth2ServiceConfigurationBuilder withClientSecret(String clientSecret); OAuth2ServiceConfigurationBuilder withUrl(String url); OAuth2ServiceConfigurationBuilder withProperty(String propertyName, String propertyValue); OAuth2ServiceConfigurationBuilder withProperties(Map<String, String> properties); OAuth2ServiceConfigurationBuilder runInLegacyMode(boolean isLegacyMode); OAuth2ServiceConfiguration build(); }
OAuth2ServiceConfigurationBuilder { public OAuth2ServiceConfigurationBuilder withClientSecret(String clientSecret) { properties.put(CLIENT_SECRET, clientSecret); return this; } private  OAuth2ServiceConfigurationBuilder(); static OAuth2ServiceConfigurationBuilder forService(@Nonnull Service service); static OAuth2ServiceConfigurationBuilder fromConfiguration(OAuth2ServiceConfiguration baseConfiguration); OAuth2ServiceConfigurationBuilder withClientId(String clientId); OAuth2ServiceConfigurationBuilder withClientSecret(String clientSecret); OAuth2ServiceConfigurationBuilder withUrl(String url); OAuth2ServiceConfigurationBuilder withProperty(String propertyName, String propertyValue); OAuth2ServiceConfigurationBuilder withProperties(Map<String, String> properties); OAuth2ServiceConfigurationBuilder runInLegacyMode(boolean isLegacyMode); OAuth2ServiceConfiguration build();  }