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 ...

Get IBM Rational Application Developer V6 Portlet Application Development and Portal Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.