Class OAuthClientConfiguration.Builder<T extends OAuthClientConfiguration.Builder<T,C>,C extends OAuthClientConfiguration>

java.lang.Object
org.forgerock.oauth.OAuthClientConfiguration.Builder<T,C>
Type Parameters:
T - the type of OAuth client configuration builder to build.
C - the type of OAuth Client Configuration to build.
Direct Known Subclasses:
OAuth2ClientConfiguration.Builder
Enclosing class:
OAuthClientConfiguration

public abstract static class OAuthClientConfiguration.Builder<T extends OAuthClientConfiguration.Builder<T,C>,C extends OAuthClientConfiguration> extends Object
Base builder used to create OAuthClientConfiguration instances.
  • Constructor Details

    • Builder

      protected Builder(Function<T,C> builder)
      Creates an OAuthClientConfiguration builder instance.
      Parameters:
      builder - OAuthClientConfiguration builder.
  • Method Details

    • self

      protected T self()
      Returns this object, as its actual type.
      Returns:
      this object.
    • withProvider

      public T withProvider(String provider)
      Sets the provider name.
      Parameters:
      provider - provider name.
      Returns:
      Builder
    • withAuthenticationIdKey

      public T withAuthenticationIdKey(String authenticationIdKey)
      Set the authenticationIdKey.
      Parameters:
      authenticationIdKey - the unique authentication id that an authentication server uses to identify a user by.
      Returns:
      Builder
    • build

      public C build()
      Builds an OAuthClientConfiguration instance.
      Returns:
      OAuthClientConfiguration.