Class OAuthServerKeyManagerImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.oauth.keys.OAuthServerKeyManagerImpl
- All Implemented Interfaces:
OAuthServerKeyManager,Adaptable,Component,Extensible,TimestampedService
Implements the
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).- Author:
- tiry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NuxeoOAuthConsumerprotected Stringprotected Stringprotected ServerKeyDescriptorstatic final StringFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(ComponentContext context) Activates the component.Returns the Private Key used by Nuxeo server to do RSA Signing.Returns the Public Key certificate used by Nuxeo server to do RSA Signing.Returns theNuxeoOAuthConsumerrepresenting local (embedded) Shindig instance.Returns the consumerKey used in Shindig => Nuxeo sign fetch.Returns the consumerSecret (HMAC) used in Shindig => Nuxeo sign fetch.Returns key name (not really used).Returns the Private Key used by Nuxeo server to do RSA Signing.Returns the Public Key certificate used by Nuxeo server to do RSA Signing.voidregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) protected StringstripOpenSSL(String key) voidunregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
serverKeyDescriptor
-
XP_SERVER_KEY
- See Also:
-
consumer
-
internalKey
-
internalSecret
-
-
Constructor Details
-
OAuthServerKeyManagerImpl
public OAuthServerKeyManagerImpl()
-
-
Method Details
-
activate
Description copied from interface:ComponentActivates the component.This method is called by the runtime when a component is activated.
- Specified by:
activatein interfaceComponent- Overrides:
activatein classDefaultComponent- Parameters:
context- the runtime context
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContributionin classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContributionin classDefaultComponent
-
getPublicKeyCertificate
Description copied from interface:OAuthServerKeyManagerReturns the Public Key certificate used by Nuxeo server to do RSA Signing.- Specified by:
getPublicKeyCertificatein interfaceOAuthServerKeyManager
-
getBarePublicCertificate
Description copied from interface:OAuthServerKeyManagerReturns the Public Key certificate used by Nuxeo server to do RSA Signing. (Removes OpenSSL decorators).- Specified by:
getBarePublicCertificatein interfaceOAuthServerKeyManager
-
getPrivateKey
Description copied from interface:OAuthServerKeyManagerReturns the Private Key used by Nuxeo server to do RSA Signing.- Specified by:
getPrivateKeyin interfaceOAuthServerKeyManager
-
getBarePrivateKey
Description copied from interface:OAuthServerKeyManagerReturns the Private Key used by Nuxeo server to do RSA Signing. (Removes OpenSSL decorators).- Specified by:
getBarePrivateKeyin interfaceOAuthServerKeyManager
-
getKeyName
Description copied from interface:OAuthServerKeyManagerReturns key name (not really used).- Specified by:
getKeyNamein interfaceOAuthServerKeyManager
-
stripOpenSSL
-
getInternalKey
Description copied from interface:OAuthServerKeyManagerReturns the consumerKey used in Shindig => Nuxeo sign fetch.- Specified by:
getInternalKeyin interfaceOAuthServerKeyManager
-
getInternalSecret
Description copied from interface:OAuthServerKeyManagerReturns the consumerSecret (HMAC) used in Shindig => Nuxeo sign fetch.- Specified by:
getInternalSecretin interfaceOAuthServerKeyManager
-
getInternalConsumer
Description copied from interface:OAuthServerKeyManagerReturns theNuxeoOAuthConsumerrepresenting local (embedded) Shindig instance.- Specified by:
getInternalConsumerin interfaceOAuthServerKeyManager
-