Class PayPalIdentityProviderConfig

All Implemented Interfaces:
Serializable

public class PayPalIdentityProviderConfig extends OAuth2IdentityProviderConfig
Author:
Petter Lysne (petterlysne at hotmail dot com)
See Also:
  • Constructor Details

    • PayPalIdentityProviderConfig

      public PayPalIdentityProviderConfig(IdentityProviderModel model)
    • PayPalIdentityProviderConfig

      public PayPalIdentityProviderConfig()
  • Method Details

    • targetSandbox

      public boolean targetSandbox()
    • setSandbox

      public void setSandbox(boolean sandbox)
    • getClientSecretDestinationConfigKeys

      protected String[] getClientSecretDestinationConfigKeys()
      Description copied from class: OAuth2IdentityProviderConfig
      Config keys that determine where/how a client secret is sent. Includes baseUrl, which some social providers (for example GitHub/OpenShift) use to derive the token endpoint at runtime. Provider-specific configs may override to add keys such as tenantId or sandbox.
      Overrides:
      getClientSecretDestinationConfigKeys in class OAuth2IdentityProviderConfig
    • isClientSecretDestinationChanged

      protected boolean isClientSecretDestinationChanged(String key, String stored, String updated)
      sandbox is a boolean; an absent value is equivalent to "false", which is what the admin console submits for existing providers created without the key. Parsing mirrors targetSandbox() so the comparison matches the effective token host.
      Overrides:
      isClientSecretDestinationChanged in class OAuth2IdentityProviderConfig
      Parameters:
      key - the config key being compared
      stored - the currently stored value, possibly null
      updated - the submitted value, possibly null
      Returns:
      true if the values represent different destinations