|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mozilla.javascript.ScriptableObject
org.wso2.carbon.hostobjects.sso.SAMLSSORelyingPartyObject
public class SAMLSSORelyingPartyObject
This class wrap up the operations needed to write a saml relying party for sso use case.
| Field Summary |
|---|
| Fields inherited from class org.mozilla.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface org.mozilla.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
SAMLSSORelyingPartyObject()
|
|
| Method Summary | |
|---|---|
static String |
decode(String xmlString)
Decode xml |
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_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_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_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)
|
| Methods inherited from class org.mozilla.javascript.ScriptableObject |
|---|
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, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAMLSSORelyingPartyObject()
| Method Detail |
|---|
public String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObject
public 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 -
Exception
public 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 -
Exception
public 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 -
Exception
public 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 -
Exception
public 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 -
Exception
public static String jsFunction_getSAMLToken(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws Exception
Exception
public 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 -
Exception
public 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 -
Exception
public 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 -
Exception
public 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 -
Exception
public 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 -
Exception
public 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 -
ScriptException
public static boolean jsFunction_isSessionAuthenticated(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws ScriptException
cx - thisObj - args - funObj -
ScriptException
public static String jsFunction_getIdentitySessionId(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws ScriptException
ScriptException
public static String jsFunction_getLoggedInUser(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws ScriptException
ScriptException
public 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 -
Exception
public 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 -
Exception
public 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 -
Exception
public 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 -
ScriptException
public 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 -
ScriptException
public 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 -
ScriptException
public static String jsFunction_xmlDecode(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws ScriptException
ScriptException
public static String jsFunction_xmlEncode(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws ScriptException
ScriptExceptionpublic static String decode(String xmlString)
xmlString -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||