public class ClientRegistryImpl extends DefaultComponent implements ClientRegistry
OAUTH2CLIENT_DIRECTORY_NAME, OAUTH2CLIENT_SCHEMA
Constructor and Description |
---|
ClientRegistryImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteClient(String clientId) |
OAuth2Client |
getClient(String clientId) |
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, unregisterContribution, unregisterExtension
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public boolean hasClient(String clientId) throws ClientException
hasClient
in interface ClientRegistry
ClientException
public boolean isValidClient(String clientId, String clientSecret) throws ClientException
isValidClient
in interface ClientRegistry
ClientException
public boolean registerClient(OAuth2Client client) throws ClientException
registerClient
in interface ClientRegistry
ClientException
public boolean deleteClient(String clientId) throws ClientException
deleteClient
in interface ClientRegistry
ClientException
public List<DocumentModel> listClients() throws ClientException
listClients
in interface ClientRegistry
ClientException
public OAuth2Client getClient(String clientId) throws ClientException
getClient
in interface ClientRegistry
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.