The Policy Builder allows you to make a call to a Named Password. Create a new rule and select Named Password as the condition, then set an action depending upon if the Named Password is available or not available.
In Designer, launch the Policy Builder, right-click, then click.
Specify the name of the rule, then click.
Select the condition structure, then click.
Selectfor the .
Browse to and select the Named Password that is stored on the driver.
In this example, it is user info.
Select whether the operator is available or not available, then click.
Select an action for thefield.
In this example, the action is.
The example indicates that if the user info Named Password is not available, then the event is vetoed.
Figure 9-1 A Policy Using Named Passwords
The following example shows how a Named Password can be referenced in a driver policy on the Subscriber channel in XSLT:
<xsl:value-of select="query:getNamedPassword($srcQueryProcessor,'mynamedpassword')" xmlns:query="http://www.novell.com/nxsl/java/com.novell.nds.dirxml.driver.XdsQueryProcessor"/>