|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.model.DefaultComponent org.nuxeo.ecm.platform.oauth.keys.OAuthServerKeyManagerImpl
public class OAuthServerKeyManagerImpl
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).
Field Summary | |
---|---|
static String |
XP_SERVER_KEY
|
Constructor Summary | |
---|---|
OAuthServerKeyManagerImpl()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
applicationStarted, deactivate, getAdapter, registerExtension, unregisterExtension |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String XP_SERVER_KEY
Constructor Detail |
---|
public OAuthServerKeyManagerImpl()
Method Detail |
---|
public void activate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime context
Exception
- if an error occurs during activationpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution
in class DefaultComponent
Exception
public String getPublicKeyCertificate()
OAuthServerKeyManager
getPublicKeyCertificate
in interface OAuthServerKeyManager
public String getBarePublicCertificate()
OAuthServerKeyManager
getBarePublicCertificate
in interface OAuthServerKeyManager
public String getPrivateKey()
OAuthServerKeyManager
getPrivateKey
in interface OAuthServerKeyManager
public String getBarePrivateKey()
OAuthServerKeyManager
getBarePrivateKey
in interface OAuthServerKeyManager
public String getKeyName()
OAuthServerKeyManager
getKeyName
in interface OAuthServerKeyManager
public String getInternalKey()
OAuthServerKeyManager
getInternalKey
in interface OAuthServerKeyManager
public String getInternalSecret()
OAuthServerKeyManager
getInternalSecret
in interface OAuthServerKeyManager
public NuxeoOAuthConsumer getInternalConsumer()
OAuthServerKeyManager
NuxeoOAuthConsumer
representing local (embedded) Shindig instance.
getInternalConsumer
in interface OAuthServerKeyManager
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |