O'Reilly logo

IBM Rational Application Developer V6 Portlet Application Development and Portal Tools by Ryan Wilson, Gianfranco Rutigliano, George Kroner, Belen Gonzalez, Karla Galvan, Cristiano Cesario, Juan R. Rodriguez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

20.3. Working with the CredentialVaultService

To work with credentials, the first step is to acquire a reference to the CredentialVaultService. This section explains how to acquire a reference to a CredentialVaultService and its most important methods.

There are in fact two CredentialVaultService classes. One for each portlet API. In IBM Portlet API you will use the com.ibm.wps.portletservice.credentialvault.CredentialVaultService, whereas in JSR 168 you will use the com.ibm.portal.portlet.service.credentialvault.CredentialVaultService.

20.3.1. Acquiring a reference to the CredentialVaultService

There is a slight difference in the way you retrieve a reference to the CredentialVaultService. In JSR 168, you must use a JNDI lookup to access the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required