REST Binding Component User's Guide

ProcedureTo Use an Application Variable for Password Protection

To protect passwords that would otherwise appear as clear text in your WSDL document, you can enter a Password application variable as a token. In the following example, a password application variable is created that uses the name SECRET and the password PROTECT.

  1. On the NetBeans IDE Services window, expand Servers > GlassFish v2.1 > JBI > Binding Components.

  2. Right-click sun-rest-binding, and then select Properties.

    The Properties window appears.

  3. Click the ellipsis next to Application Variables.

    The Application Variables Editor appears.

  4. Click Add, select Password, and then click OK.

    A new row appears in the variable list.

  5. Enter SECRET as the name, and enter PROTECT as the value.

    Because this is a password type, the characters appear as asterisks.

  6. Use the application variable name ${SECRET} as the WSDL password attribute, using the dollar sign and curly braces as shown.