CentraSite Documentation : Runtime Governance with CentraSite : Invoking webMethods IS Services in Virtual Services : Using the Security API in webMethods IS Services : pub.mediator.security.ws:AddSamlSenderVouchesToken
pub.mediator.security.ws:AddSamlSenderVouchesToken
This service enables a Security Token Service (STS) client to send a WS-Trust request to a configured STS to obtain a SAML v1/v2 assertion. For the details about configuring Mediator to act as an STS client, see Administering webMethods Mediator.
This service adds the obtained SAML assertion to the original request that is sent by the client to the native service, and includes the following parameters:
Note:  
For reasons of legibility some of the examples below contain break lines and may not work when pasted into applications or command line tools.
In the parameter descriptions, the data type is listed first, followed by the Java type in parenthesis, for example, “Object (org.apache.axis2.context.MessageContext)”.
Input Parameters
ConfigName
String (String) (Required) References a previously configured STS configuration name.
The default value is: ""
MessageContext
Object (org.apache.axis2.context.MessageContext) (Required) Mediator will place a MessageContext variable into the pipeline before executing the webMethods IS service call.
The default value is: org.apache.axis2.context.MessageContext instance
addTimeStamp
Boolean (Boolean) (Optional) Adds a Timestamp element (with the duration specified in timeToLive) to the WS-Security header of the request and includes it in the signature. (The other items that are signed are the body and SAML assertion.)
The default value is: false
timeToLive
Integer (Integer) (Optional) If addTimeStamp is true, timeToLive specifies the duration (in seconds) for which the request is valid.
The default value is: 300 (5 minutes)
actor
String (String) (Optional) Indicates the value of the SOAP actor attribute if a new security header is being added to the SOAP request. If the request already has a security header with the actor specified in it, then this value will not overwrite it.
The default value is: ""
mustUnderstand
Boolean (Boolean) (Optional) Specifies whether the security header will have the mustUnderstand attribute set to 0 or 1 (false / true). If the security header already has this attribute set, then this value will not overwrite it.
The default value is: false
Example of using AddSamlSenderVouchesToken
The sample service shown below is configured by providing the MessageContext and ConfigName parameters. The value of ConfigName must be the name of a previously configured STS name, which is configured on the Mediator Configuration page.
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback