public class OAuthServerKeyManagerImpl extends DefaultComponent implements OAuthServerKeyManager
OAuthServerKeyManager interface.
Manages an extention point to configure RSA Key Pair.
Shindig/Nuxeo HMAC shared secret is dynamically generated at startup time
(and shared between Nuxeo OAUth Filter and Shindig directly in memory).| Modifier and Type | Field and Description |
|---|---|
static String |
XP_SERVER_KEY |
| Constructor and Description |
|---|
OAuthServerKeyManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context)
Activates the component.
|
String |
getBarePrivateKey()
Returns the Private Key used by Nuxeo server to do RSA Signing.
|
String |
getBarePublicCertificate()
Returns the Public Key certificate used by Nuxeo server to do RSA Signing.
|
NuxeoOAuthConsumer |
getInternalConsumer()
Returns the
NuxeoOAuthConsumer representing local (embedded) Shindig instance. |
String |
getInternalKey()
Returns the consumerKey used in Shindig => Nuxeo sign fetch.
|
String |
getInternalSecret()
Returns the consumerSecret (HMAC) used in Shindig => Nuxeo sign fetch.
|
String |
getKeyName()
Returns key name (not really used).
|
String |
getPrivateKey()
Returns the Private Key used by Nuxeo server to do RSA Signing.
|
String |
getPublicKeyCertificate()
Returns the Public Key certificate used by Nuxeo server to do RSA Signing.
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtensionpublic static final String XP_SERVER_KEY
public void activate(ComponentContext context) throws Exception
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextException - if an error occurs during activationpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution in class DefaultComponentExceptionpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution in class DefaultComponentExceptionpublic String getPublicKeyCertificate()
OAuthServerKeyManagergetPublicKeyCertificate in interface OAuthServerKeyManagerpublic String getBarePublicCertificate()
OAuthServerKeyManagergetBarePublicCertificate in interface OAuthServerKeyManagerpublic String getPrivateKey()
OAuthServerKeyManagergetPrivateKey in interface OAuthServerKeyManagerpublic String getBarePrivateKey()
OAuthServerKeyManagergetBarePrivateKey in interface OAuthServerKeyManagerpublic String getKeyName()
OAuthServerKeyManagergetKeyName in interface OAuthServerKeyManagerpublic String getInternalKey()
OAuthServerKeyManagergetInternalKey in interface OAuthServerKeyManagerpublic String getInternalSecret()
OAuthServerKeyManagergetInternalSecret in interface OAuthServerKeyManagerpublic NuxeoOAuthConsumer getInternalConsumer()
OAuthServerKeyManagerNuxeoOAuthConsumer representing local (embedded) Shindig instance.getInternalConsumer in interface OAuthServerKeyManagerCopyright © 2013 Nuxeo SA. All Rights Reserved.