Class JSMessageExtensionContext
java.lang.Object
com.tivoli.am.fim.saml20.protocol.extension.js.JSMessageExtensionContext
Context provided in a SAML20 message extension rule.
Will be provided as a variable 'context'.
An example of usage is:
var lang = context.getHeader("Accept-Language");
-
Constructor Summary
ConstructorDescriptionJSMessageExtensionContext
(com.tivoli.am.fim.xml.extension.XMLMessageExtensionInfo info) -
Method Summary
Modifier and TypeMethodDescriptionGet a HTTP header of the request which is triggering this SAML message.Get a list of header names which were present in the request.Get a list of keys which can be used ingetInfoValue(name)
calls.getInfoValue
(String name) get a piece of informationa about the SAML context.getParameter
(String name) Get a HTTP parameter of the request which is triggering this SAML message.Get a list of HTTP parameters which were present in the request.getUrl()
Get the URL of the request which is triggering this SAML message.
-
Constructor Details
-
JSMessageExtensionContext
public JSMessageExtensionContext(com.tivoli.am.fim.xml.extension.XMLMessageExtensionInfo info)
-
-
Method Details
-
getInfoKeys
Get a list of keys which can be used ingetInfoValue(name)
calls. These keys will include informationa about the SAML context.- Returns:
- A list of strings which are valid in a
getInfoValue(name)
call.
-
getInfoValue
get a piece of informationa about the SAML context. UsegetInfoKeys()
to get a list of valid keys. These keys will include things like:- Federation and Partner name
- Federation and Partner role
- Federation and Partner ID
- Message Type
- username
- The query string of the initial request
- Binding
- Profile
- Returns:
- the info associated with the provided name.
-
getHeaderNames
Get a list of header names which were present in the request.- Returns:
- a list of valid header names that can be used in a call to
getHeader(name)
.
-
getParameterNames
Get a list of HTTP parameters which were present in the request.- Returns:
- a list of valid parameter names that can be used in a call to
getParameter(name)
.
-
getHeader
Get a HTTP header of the request which is triggering this SAML message.- Parameters:
name
- of the header to retrieve.- Returns:
- the header value.
-
getParameter
Get a HTTP parameter of the request which is triggering this SAML message.- Parameters:
name
- of the parameter to retrieve.- Returns:
- the parameter value.
-
getUrl
Get the URL of the request which is triggering this SAML message.
-