public class JSApiKeyManager extends JSBaseScriptableObject
Constructor and Description |
---|
JSApiKeyManager() |
Modifier and Type | Method and Description |
---|---|
void |
(JavaScript Function) deleteApiKey(java.lang.String theApiKey)
Deletes a specific API key
|
java.lang.String |
(JavaScript Function) getOrCreateApiKey(java.lang.String theName,
java.lang.String theUserName)
This method gets or creates a permanent API key for the calling user
|
java.lang.String |
(JavaScript Function) getOrCreateExpiringApiKey(java.lang.String theUserName)
This method gets or creates an expiring API key for the calling user
|
java.lang.String |
(JavaScript Function) getOrCreateWorkflowApiKey(java.lang.String theWorkflowName,
java.lang.String theUserName)
This gets or creates an API key that can only be used to run the specified workflow
|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isConst, isEmpty, isExtensible, isSealed, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size
public java.lang.String (JavaScript Function) getOrCreateWorkflowApiKey(java.lang.String theWorkflowName, java.lang.String theUserName)
theWorkflowName
- The name of the workflow this API key runstheUserName
- Optional username (current user if omitted)public java.lang.String (JavaScript Function) getOrCreateApiKey(java.lang.String theName, java.lang.String theUserName)
theName
- optional key name, may be emptytheUserName
- Optional username (current user if omitted)public java.lang.String (JavaScript Function) getOrCreateExpiringApiKey(java.lang.String theUserName)
theUserName
- Optional username (current user if omitted)public void (JavaScript Function) deleteApiKey(java.lang.String theApiKey)
theApiKey
- the key to deleteCopyright © 2016 MediaBeacon, Inc. All Rights Reserved.