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 | Class and Description | 
|---|---|
protected class  | 
OAuthServerKeyManagerImpl.InternalNuxeoOAuthConsumer  | 
| Modifier and Type | Field and Description | 
|---|---|
protected NuxeoOAuthConsumer | 
consumer  | 
protected String | 
internalKey  | 
protected String | 
internalSecret  | 
protected ServerKeyDescriptor | 
serverKeyDescriptor  | 
static String | 
XP_SERVER_KEY  | 
lastModified, name| 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)  | 
protected String | 
stripOpenSSL(String key)  | 
void | 
unregisterContribution(Object contribution,
                      String extensionPoint,
                      ComponentInstance contributor)  | 
deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderprotected ServerKeyDescriptor serverKeyDescriptor
public static final String XP_SERVER_KEY
protected NuxeoOAuthConsumer consumer
protected String internalKey
protected String internalSecret
public OAuthServerKeyManagerImpl()
public void activate(ComponentContext context)
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution in class DefaultComponentpublic 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 OAuthServerKeyManagerprotected String stripOpenSSL(String key)
public String getInternalKey()
OAuthServerKeyManagergetInternalKey in interface OAuthServerKeyManagerpublic String getInternalSecret()
OAuthServerKeyManagergetInternalSecret in interface OAuthServerKeyManagerpublic NuxeoOAuthConsumer getInternalConsumer()
OAuthServerKeyManagerNuxeoOAuthConsumer representing local (embedded) Shindig instance.getInternalConsumer in interface OAuthServerKeyManagerCopyright © 2019 Nuxeo. All rights reserved.