Class OpenIDConnectProviderDescriptor

java.lang.Object
org.nuxeo.ecm.platform.oauth2.openid.OpenIDConnectProviderDescriptor
All Implemented Interfaces:
Descriptor

public class OpenIDConnectProviderDescriptor extends Object implements Descriptor
  • Field Details

    • DEFAULT_ACCESS_TOKEN_KEY

      public static final String DEFAULT_ACCESS_TOKEN_KEY
      See Also:
    • DEFAULT_USER_RESOLVER_CLASS

      public static final Class<? extends UserResolver> DEFAULT_USER_RESOLVER_CLASS
    • DEFAULT_REDIRECT_URI_RESOLVER_CLASS

      public static final Class<? extends RedirectUriResolver> DEFAULT_REDIRECT_URI_RESOLVER_CLASS
    • DEFAULT_USER_INFO_CLASS

      public static final Class<? extends OpenIDUserInfo> DEFAULT_USER_INFO_CLASS
    • URL_AUTHENTICATION_METHOD

      public static final String URL_AUTHENTICATION_METHOD
      Since:
      11.1
      See Also:
    • BEARER_AUTHENTICATION_METHOD

      public static final String BEARER_AUTHENTICATION_METHOD
      Since:
      11.1
      See Also:
    • DEFAULT_AUTHENTICATION_METHOD

      public static final String DEFAULT_AUTHENTICATION_METHOD
      Since:
      11.1
      See Also:
    • enabled

      protected boolean enabled
    • name

      protected String name
    • 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
    • userResolverClass

      protected Class<? extends UserResolver> userResolverClass
    • userMapper

      protected String userMapper
    • redirectUriResolver

      protected Class<? extends RedirectUriResolver> redirectUriResolver
    • userInfoClass

      protected Class<? extends OpenIDUserInfo> userInfoClass
    • authenticationMethod

      protected String authenticationMethod
      Since:
      11.1
  • Constructor Details

    • OpenIDConnectProviderDescriptor

      public OpenIDConnectProviderDescriptor()
  • 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()
    • getTokenServerURL

      public String getTokenServerURL()
    • getAuthorizationServerURL

      public String getAuthorizationServerURL()
    • getClientId

      public String getClientId()
    • getClientSecret

      public String getClientSecret()
    • getScopes

      public String[] getScopes()
    • getUserInfoURL

      public String getUserInfoURL()
    • getAccessTokenKey

      public String getAccessTokenKey()
    • getIcon

      public String getIcon()
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getLabel

      public String getLabel()
    • getDescription

      public String getDescription()
    • getUserMapper

      public String getUserMapper()
    • getUserResolverClass

      public Class<? extends UserResolver> getUserResolverClass()
    • getRedirectUriResolver

      public Class<? extends RedirectUriResolver> getRedirectUriResolver()
    • getUserInfoClass

      public Class<? extends OpenIDUserInfo> getUserInfoClass()
    • getAuthenticationMethod

      public String getAuthenticationMethod()
      Since:
      11.1
    • 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