Interface OAuth2Defaults.Builder

All Superinterfaces:
Buildable, CopyableBuilder<OAuth2Defaults.Builder,OAuth2Defaults>, SdkBuilder<OAuth2Defaults.Builder,OAuth2Defaults>, SdkPojo
Enclosing class:
OAuth2Defaults

public static interface OAuth2Defaults.Builder extends SdkPojo, CopyableBuilder<OAuth2Defaults.Builder,OAuth2Defaults>
  • Method Details

    • oauthScopes

      OAuth2Defaults.Builder oauthScopes(Collection<String> oauthScopes)

      OAuth 2.0 scopes that the connector supports.

      Parameters:
      oauthScopes - OAuth 2.0 scopes that the connector supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • oauthScopes

      OAuth2Defaults.Builder oauthScopes(String... oauthScopes)

      OAuth 2.0 scopes that the connector supports.

      Parameters:
      oauthScopes - OAuth 2.0 scopes that the connector supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tokenUrls

      OAuth2Defaults.Builder tokenUrls(Collection<String> tokenUrls)

      Token URLs that can be used for OAuth 2.0 authentication.

      Parameters:
      tokenUrls - Token URLs that can be used for OAuth 2.0 authentication.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tokenUrls

      OAuth2Defaults.Builder tokenUrls(String... tokenUrls)

      Token URLs that can be used for OAuth 2.0 authentication.

      Parameters:
      tokenUrls - Token URLs that can be used for OAuth 2.0 authentication.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authCodeUrls

      OAuth2Defaults.Builder authCodeUrls(Collection<String> authCodeUrls)

      Auth code URLs that can be used for OAuth 2.0 authentication.

      Parameters:
      authCodeUrls - Auth code URLs that can be used for OAuth 2.0 authentication.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authCodeUrls

      OAuth2Defaults.Builder authCodeUrls(String... authCodeUrls)

      Auth code URLs that can be used for OAuth 2.0 authentication.

      Parameters:
      authCodeUrls - Auth code URLs that can be used for OAuth 2.0 authentication.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • oauth2GrantTypesSupportedWithStrings

      OAuth2Defaults.Builder oauth2GrantTypesSupportedWithStrings(Collection<String> oauth2GrantTypesSupported)

      OAuth 2.0 grant types supported by the connector.

      Parameters:
      oauth2GrantTypesSupported - OAuth 2.0 grant types supported by the connector.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • oauth2GrantTypesSupportedWithStrings

      OAuth2Defaults.Builder oauth2GrantTypesSupportedWithStrings(String... oauth2GrantTypesSupported)

      OAuth 2.0 grant types supported by the connector.

      Parameters:
      oauth2GrantTypesSupported - OAuth 2.0 grant types supported by the connector.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • oauth2GrantTypesSupported

      OAuth2Defaults.Builder oauth2GrantTypesSupported(Collection<OAuth2GrantType> oauth2GrantTypesSupported)

      OAuth 2.0 grant types supported by the connector.

      Parameters:
      oauth2GrantTypesSupported - OAuth 2.0 grant types supported by the connector.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • oauth2GrantTypesSupported

      OAuth2Defaults.Builder oauth2GrantTypesSupported(OAuth2GrantType... oauth2GrantTypesSupported)

      OAuth 2.0 grant types supported by the connector.

      Parameters:
      oauth2GrantTypesSupported - OAuth 2.0 grant types supported by the connector.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • oauth2CustomProperties

      OAuth2Defaults.Builder oauth2CustomProperties(Collection<OAuth2CustomParameter> oauth2CustomProperties)

      List of custom parameters required for OAuth 2.0 authentication.

      Parameters:
      oauth2CustomProperties - List of custom parameters required for OAuth 2.0 authentication.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • oauth2CustomProperties

      OAuth2Defaults.Builder oauth2CustomProperties(OAuth2CustomParameter... oauth2CustomProperties)

      List of custom parameters required for OAuth 2.0 authentication.

      Parameters:
      oauth2CustomProperties - List of custom parameters required for OAuth 2.0 authentication.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • oauth2CustomProperties

      OAuth2Defaults.Builder oauth2CustomProperties(Consumer<OAuth2CustomParameter.Builder>... oauth2CustomProperties)

      List of custom parameters required for OAuth 2.0 authentication.

      This is a convenience method that creates an instance of the OAuth2CustomParameter.Builder avoiding the need to create one manually via OAuth2CustomParameter.builder() .

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to oauth2CustomProperties(List<OAuth2CustomParameter>).

      Parameters:
      oauth2CustomProperties - a consumer that will call methods on OAuth2CustomParameter.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: