public class ClientRegistryImpl extends DefaultComponent implements ClientRegistry
lastModified
OAUTH2CLIENT_DIRECTORY_NAME, OAUTH2CLIENT_SCHEMA
Constructor and Description |
---|
ClientRegistryImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteClient(String clientId) |
OAuth2Client |
getClient(String clientId) |
protected DocumentModel |
getClientModel(String clientId) |
protected DirectoryService |
getService() |
boolean |
hasClient(String clientId) |
boolean |
isValidClient(String clientId,
String clientSecret) |
List<DocumentModel> |
listClients() |
boolean |
registerClient(OAuth2Client client) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterContribution, unregisterExtension
public ClientRegistryImpl()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public boolean hasClient(String clientId)
hasClient
in interface ClientRegistry
public boolean isValidClient(String clientId, String clientSecret)
isValidClient
in interface ClientRegistry
public boolean registerClient(OAuth2Client client)
registerClient
in interface ClientRegistry
public boolean deleteClient(String clientId)
deleteClient
in interface ClientRegistry
public List<DocumentModel> listClients()
listClients
in interface ClientRegistry
public OAuth2Client getClient(String clientId)
getClient
in interface ClientRegistry
protected DocumentModel getClientModel(String clientId)
protected DirectoryService getService()
Copyright © 2016 Nuxeo SA. All rights reserved.