public class OAuthHostObject
extends org.mozilla.javascript.ScriptableObject
| Constructor and Description |
|---|
OAuthHostObject() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName() |
static org.mozilla.javascript.Scriptable |
jsConstructor(org.mozilla.javascript.Context cx,
Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
var provider = {
"oauth_version" : "1",
"authorization_url" : "https://www.linkedin.com/uas/oauth/authorize",
"access_token_url" : "https://api.linkedin.com/uas/oauth/accessToken",
"request_token_url" : "https://api.linkedin.com/uas/oauth/requestToken",
"api_key" : "key",
"api_secret" : "secret"
}
new OAuthProvider(provider);
|
static org.scribe.model.Token |
jsFunction_getAccessToken(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Provides the authCode and creates a AccessToken
|
static String |
jsFunction_getAuthorizationUrl(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
creates an authorization Token
|
static org.scribe.model.Response |
jsFunction_sendOAuthRequest(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Send OAuth Request.
|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, sizepublic String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectpublic static org.mozilla.javascript.Scriptable jsConstructor(org.mozilla.javascript.Context cx,
Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
throws org.jaggeryjs.scriptengine.exceptions.ScriptException
org.jaggeryjs.scriptengine.exceptions.ScriptExceptionpublic static String jsFunction_getAuthorizationUrl(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws org.jaggeryjs.scriptengine.exceptions.ScriptException
org.jaggeryjs.scriptengine.exceptions.ScriptExceptionpublic static org.scribe.model.Response jsFunction_sendOAuthRequest(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws org.jaggeryjs.scriptengine.exceptions.ScriptException
org.jaggeryjs.scriptengine.exceptions.ScriptExceptionpublic static org.scribe.model.Token jsFunction_getAccessToken(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws org.jaggeryjs.scriptengine.exceptions.ScriptException
org.jaggeryjs.scriptengine.exceptions.ScriptExceptionCopyright © 2015 WSO2 Inc. All rights reserved.