Class OAuth2ServiceProviderDescriptor
java.lang.Object
org.nuxeo.ecm.platform.oauth2.providers.OAuth2ServiceProviderDescriptor
- All Implemented Interfaces:
Descriptor
- Since:
- 7.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
static final String
static final Class
<? extends OAuth2ServiceProvider> protected String
protected boolean
protected String
protected String
protected String
protected Class
<? extends OAuth2ServiceProvider> protected String[]
protected String
protected String
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIcon()
getId()
The descriptor id, descriptors with same id are merged.getLabel()
getName()
Class
<? extends OAuth2ServiceProvider> String[]
boolean
merge
(Descriptor o) Returns a descriptor representingother
merged intothis
void
setEnabled
(boolean enabled) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove
-
Field Details
-
DEFAULT_ACCESS_TOKEN_KEY
- See Also:
-
DEFAULT_PROVIDER_CLASS
-
name
-
enabled
protected boolean enabled -
tokenServerURL
-
authorizationServerURL
-
userInfoURL
-
accessTokenKey
-
clientId
-
clientSecret
-
scopes
-
icon
-
label
-
description
-
providerClass
-
-
Constructor Details
-
OAuth2ServiceProviderDescriptor
public OAuth2ServiceProviderDescriptor()
-
-
Method Details
-
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 interfaceDescriptor
-
getName
-
isEnabled
public boolean isEnabled() -
getTokenServerURL
-
getAuthorizationServerURL
-
getClientId
-
getClientSecret
-
getScopes
-
getIcon
-
setEnabled
public void setEnabled(boolean enabled) -
getLabel
-
getDescription
-
getProviderClass
-
merge
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-