public class OIDCRelyingPartyObject
extends org.mozilla.javascript.ScriptableObject
| Constructor and Description |
|---|
OIDCRelyingPartyObject() |
| 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) |
static String |
jsFunction_buildAuthRequestUrl(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Building authentication request URL.
|
static String |
jsFunction_createNonce(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Create a cryptographically random nonce and return
|
static String |
jsFunction_createState(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Create a cryptographically random state and return
|
static String |
jsFunction_getIdTokenResponse(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
static String |
jsFunction_getLoggedInUser(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
static void |
jsFunction_invalidateSessionBySessionId(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Invalidate current browser authenticated session based on session id.
|
static boolean |
jsFunction_isSessionAuthenticated(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
static void |
jsFunction_logoutUser(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
static void |
jsFunction_setProperty(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Set OIDC Configuration key,values
|
static boolean |
jsFunction_validateOIDCSignature(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
static String |
jsFunction_validateSignature(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
To validate the OIDC signature and return the user info if the validation Succeeds.
|
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 Exception
cx - - Contextargs - - args[0]-issuerId, this issuer need to be registered in Identity server.ctorObj - - functioninNewExpr - - booleanExceptionpublic static String jsFunction_buildAuthRequestUrl(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws Exception
cx - - ContextthisObj - - This Objectargs - - takes nonce and state parametersfunObj - - FunctionExceptionpublic static boolean jsFunction_validateOIDCSignature(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws Exception
cx - - ContextthisObj - - This objectargs - - argument listfunObj - - functionExceptionpublic static String jsFunction_getIdTokenResponse(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws Exception
Exceptionpublic static String jsFunction_validateSignature(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws Exception
cx - Context.thisObj - OIDC relying party object.args - Arguments.funObj - Function Objects.Exception - Exception related with validating signature.public static String jsFunction_createNonce(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
public static String jsFunction_createState(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
public static String jsFunction_getLoggedInUser(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws ScriptException
ScriptExceptionpublic static boolean jsFunction_isSessionAuthenticated(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws ScriptException
ScriptExceptionpublic static void jsFunction_invalidateSessionBySessionId(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws Exception
cx - thisObj - args - funObj - Exceptionpublic static void jsFunction_logoutUser(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws Exception
Exceptionpublic static void jsFunction_setProperty(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws ScriptException
cx - thisObj - args - funObj - ScriptExceptionCopyright © 2019 WSO2. All rights reserved.