public class MoxtraService extends Object implements org.picocontainer.Startable
| Modifier and Type | Field and Description |
|---|---|
protected static org.exoplatform.services.log.Log |
LOG |
protected OAuthClientConfiguration |
oAuthConfig |
protected ConcurrentHashMap<String,MoxtraClient> |
users |
protected MoxtraClientStore |
usersStore |
| Constructor and Description |
|---|
MoxtraService()
No dependency constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPlugin(org.exoplatform.container.component.ComponentPlugin plugin) |
protected MoxtraClient |
createOAuthClient()
Create Moxtra client for OAuth2 authorization method.
|
MoxtraClient |
getClient()
Get
MoxtraClient from clients pool. |
OAuthClientConfiguration |
getOAuthConfig()
Configuration for OAuth2 clients.
|
void |
start() |
void |
stop() |
protected static final org.exoplatform.services.log.Log LOG
protected OAuthClientConfiguration oAuthConfig
protected MoxtraClientStore usersStore
protected ConcurrentHashMap<String,MoxtraClient> users
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic MoxtraClient getClient()
MoxtraClient from clients pool. If no client pooled it will be created and stored
first. Best fit authentication model will be chosen for the client. MoxtraClientMoxtraConfigurationExceptionprotected MoxtraClient createOAuthClient()
MoxtraExceptionMoxtraAuthenticationExceptionpublic OAuthClientConfiguration getOAuthConfig()
OAuthClientConfigurationpublic void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Copyright © 2003–2015 eXo Platform SAS. All rights reserved.