public class SAMLSSORelyingPartyObject
extends org.mozilla.javascript.ScriptableObject
| Modifier and Type | Field and Description |
|---|---|
protected static SAMLSSORelyingPartyObject |
ssho |
| Constructor and Description |
|---|
SAMLSSORelyingPartyObject() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearSessionsSet() |
static String |
decode(String xmlString)
Decode xml
|
String |
getClassName() |
org.jaggeryjs.hostobjects.web.SessionHostObject |
getSession(String sessionIndex) |
protected SessionInfo |
getSessionInfo(String sessionId) |
void |
handleClusterLogout(String sessionIndex) |
void |
handleLogout(String sessionIndex) |
void |
handleLogoutBySessionId(String sessionId) |
static org.mozilla.javascript.Scriptable |
jsConstructor(org.mozilla.javascript.Context cx,
Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr) |
static void |
jsFunction_addSession(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
static String |
jsFunction_decode(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Decoding and deflating the encoded AuthReq
|
static String |
jsFunction_encode(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Compressing and Encoding the response
|
static String |
jsFunction_getIdentitySessionId(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 String |
jsFunction_getProperty(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Get SSO configuration properties.
|
static String |
jsFunction_getRelayStateProperty(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Get requested URI for relay state.
|
static String |
jsFunction_getSAMLAuthRequest(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Get SAML authentication request build with given issuer
|
static String |
jsFunction_getSAMLLogoutRequest(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Get SAML logout request build.
|
static String |
jsFunction_getSAMLResponseNameId(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Extract the name of authenticated user from SAML response.
|
static String |
jsFunction_getSAMLToken(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
static String |
jsFunction_getUUID(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
generate a UUID
|
static void |
jsFunction_invalidateSessionBySAMLResponse(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Invalidate current browser authenticated session based on SAML log out request session index value.
|
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_isLogoutRequest(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
static boolean |
jsFunction_isLogoutResponse(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
static boolean |
jsFunction_isPassiveAuthResponse(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Checking whether the response is for passiveAuth SAML request or not.
|
static boolean |
jsFunction_isSessionAuthenticated(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Check if the browser session is valid.
|
static void |
jsFunction_setProperty(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Set SSO Configuration key,values
|
static void |
jsFunction_setRelayStateProperty(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Set relay state property with requested uri.
|
static void |
jsFunction_setSessionAuthenticated(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Set the current session as authenticated by mapping with current session id to session index.
|
static boolean |
jsFunction_validateAssertionSignature(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
static boolean |
jsFunction_validateAssertionValidityPeriod(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
static boolean |
jsFunction_validateAudienceRestrictions(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
static boolean |
jsFunction_validateSAMLResponseSchema(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Validate the saml response and its contained assertion-check the response element count and assertion count
is 1 and check the assertion validity period
|
static boolean |
jsFunction_validateSignature(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
static String |
jsFunction_xmlDecode(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
static String |
jsFunction_xmlEncode(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
void |
removeSession(String sessionIndex) |
void |
sendSessionInvalidationClusterMessage(String sessionIndex) |
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, sizeprotected static volatile SAMLSSORelyingPartyObject ssho
public String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectpublic static void jsFunction_addSession(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws Exception
Exceptionpublic static org.mozilla.javascript.Scriptable jsConstructor(org.mozilla.javascript.Context cx,
Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
throws Exception
cx - args - - args[0]-issuerId, this issuer need to be registered in Identity server.ctorObj - inNewExpr - ScriptExceptionExceptionpublic static boolean jsFunction_validateSignature(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws Exception
cx - thisObj - args - -args[0]- SAML response xmlfunObj - Exceptionpublic static boolean jsFunction_isLogoutRequest(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws Exception
cx - thisObj - args - -args[0]-Logout request xml as a string.funObj - Exceptionpublic static boolean jsFunction_isLogoutResponse(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws Exception
cx - thisObj - args-args[0]- - Logout response xml as a stringfunObj - Exceptionpublic static boolean jsFunction_isPassiveAuthResponse(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws Exception
cx - thisObj - args - - args[0] response for passiveAuth required as XMLfunObj - Exceptionpublic static String jsFunction_encode(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws Exception
cx - thisObj - args - -args[0]- string to be encoded.funObj - Exceptionpublic static String jsFunction_getSAMLToken(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws Exception
Exceptionpublic static String jsFunction_decode(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws Exception
cx - thisObj - args - -args[0]-String to be decodedfunObj - Exceptionpublic static String jsFunction_getUUID(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 String jsFunction_getSAMLAuthRequest(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 String jsFunction_getSAMLLogoutRequest(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws Exception
cx - thisObj - args-args[0]-the - user to be logoutfunObj - Exceptionpublic static boolean jsFunction_validateSAMLResponseSchema(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 String jsFunction_getSAMLResponseNameId(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_setProperty(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws ScriptException
cx - thisObj - args - funObj - ScriptExceptionpublic static boolean jsFunction_isSessionAuthenticated(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws Exception
cx - thisObj - args - funObj - ScriptExceptionExceptionpublic static String jsFunction_getIdentitySessionId(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws ScriptException
ScriptExceptionpublic 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 void jsFunction_invalidateSessionBySAMLResponse(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_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_setSessionAuthenticated(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws Exception
cx - thisObj - args - -args[0]- current session id, args[1]-SAML responsefunObj - Exceptionpublic static String jsFunction_getProperty(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws ScriptException
cx - thisObj - args - -args[0]-configuration keyfunObj - ScriptExceptionpublic static void jsFunction_setRelayStateProperty(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws ScriptException
cx - thisObj - args - funObj - ScriptExceptionpublic static String jsFunction_getRelayStateProperty(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws ScriptException
cx - thisObj - args - funObj - ScriptExceptionpublic static String jsFunction_xmlDecode(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws ScriptException
ScriptExceptionpublic static String jsFunction_xmlEncode(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws ScriptException
ScriptExceptionprotected SessionInfo getSessionInfo(String sessionId)
public void removeSession(String sessionIndex)
public void clearSessionsSet()
public org.jaggeryjs.hostobjects.web.SessionHostObject getSession(String sessionIndex)
public void handleLogout(String sessionIndex)
public void handleLogoutBySessionId(String sessionId)
public void handleClusterLogout(String sessionIndex)
public void sendSessionInvalidationClusterMessage(String sessionIndex)
public static boolean jsFunction_validateAssertionSignature(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws Exception
cx - thisObj - args - -args[0]- SAML response xmlfunObj - Exceptionpublic static boolean jsFunction_validateAudienceRestrictions(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws Exception
ExceptionCopyright © 2017 WSO2. All rights reserved.