Class OAuth2ServiceProviderDescriptor

java.lang.Object
org.nuxeo.ecm.platform.oauth2.providers.OAuth2ServiceProviderDescriptor
All Implemented Interfaces:
Descriptor

public class OAuth2ServiceProviderDescriptor extends Object implements Descriptor
Since:
7.3
  • Field Details

    • DEFAULT_ACCESS_TOKEN_KEY

      public static final String DEFAULT_ACCESS_TOKEN_KEY
      See Also:
    • DEFAULT_PROVIDER_CLASS

      public static final Class<? extends OAuth2ServiceProvider> DEFAULT_PROVIDER_CLASS
    • name

      protected String name
    • enabled

      protected boolean enabled
    • tokenServerURL

      protected String tokenServerURL
    • authorizationServerURL

      protected String authorizationServerURL
    • userInfoURL

      protected String userInfoURL
    • accessTokenKey

      protected String accessTokenKey
    • clientId

      protected String clientId
    • clientSecret

      protected String clientSecret
    • scopes

      protected String[] scopes
    • icon

      protected String icon
    • label

      protected String label
    • description

      protected String description
    • providerClass

      protected Class<? extends OAuth2ServiceProvider> providerClass
  • Constructor Details

    • OAuth2ServiceProviderDescriptor

      public OAuth2ServiceProviderDescriptor()
  • Method Details

    • getId

      public String getId()
      Description copied from interface: Descriptor
      The descriptor id, descriptors with same id are merged.

      To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.

      To forbid merge use a unique value, non-overriden toString() for exemple.

      Specified by:
      getId in interface Descriptor
    • getName

      public String getName()
    • isEnabled

      public boolean isEnabled()
    • getTokenServerURL

      public String getTokenServerURL()
    • getAuthorizationServerURL

      public String getAuthorizationServerURL()
    • getClientId

      public String getClientId()
    • getClientSecret

      public String getClientSecret()
    • getScopes

      public String[] getScopes()
    • getIcon

      public String getIcon()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getLabel

      public String getLabel()
    • getDescription

      public String getDescription()
    • getProviderClass

      public Class<? extends OAuth2ServiceProvider> getProviderClass()
    • merge

      public Descriptor merge(Descriptor o)
      Description copied from interface: Descriptor
      Returns a descriptor representing other merged into this

      Default implementation returns other.

      Specified by:
      merge in interface Descriptor
      Returns:
      the merged descriptor