WebSphere Portal Server - Where is the javadoc for WPS 5.0.2.1 CredentialVault classes?

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > December 2004 > Where is the javadoc for WPS 5.0.2.1 CredentialVault classes?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Where is the javadoc for WPS 5.0.2.1 CredentialVault classes?
Lee Francis Wilhelmsen

2004-12-08, 7:50 am

Hi

I'm trying to work out the WPS credential vault. This is a nasty beast
of an API and not very well documented at all. However, what makes
things even worse is that it seems the javadoc documentation I've been
using doesn't correspond to the WPS version I'm using. My documentation
says WebSphere Portal 5.0.0.0, but I'm running on version 5.0.2.1. I'd
just assumed that it used the same javadocs but this doesn't seem to be
the case - and there seems to have been a few changes in the credential
vault since version 5.0.0.0. I'm thinking in particular of the names of
some of the credentials have changed.

When I do the following in my code:

CredentialVaultService service = ...;
Iterator iter = service.getCredentialTypes();
while (iter.hasNext()) {
String type = (String) iter.next();
System.out.println(type);
}

I get the following list of credentials:

SimplePassive
HttpFormBasedAuth
BinaryPassive
WebSealToken
SiteMinderToken
LtpaToken
JaasSubjectPassive
HttpBasicAuth
JavaMail

However, my documentation lists the following credential implementations:

BinaryCredential
BinaryPassiveCredential
HttpBasicAuthCredential
HttpFormBasedAuthCredential
JaasSubjectCredential
JaasSubjectPassiveCredential
JavaMailCredential
LtpaTokenCredential
SimplePassiveCredential
SiteMinderTokenCredential
UserPasswordCredential
WebSealTokenCredential

Notice the name changes on all credential classes. So calling code like

Credential cred = service.getCredential(slot.getSlotId(),
"HttpFormBasedAuthCredential",
new Hashtable(),
event.getRequest());

was naturally giving me exceptions because it couldn't initialize an
instance of the HttpFormBasedAuthCredential class. I then performed a
search for HttpFormBasedAuth on Google in hope of stumbling accoss a
newer version of the javadocs for my installation, but I found nothing.
So just where are the javadocs API for WebSphere Portal 5.0.2.1?

The only link I can find is this one:

http://www-106.ibm.com/developerwor...let/5.0api/WPS/

but this seems to be same as the one I'm using. I got the link from:

http://publib.boulder.ibm.com/pvc/w...nter/index.html

but there's no listing for javadocs for WPS 5.0.2

Can anyone help?

regards
Lee Francis
Lee Francis Wilhelmsen

2004-12-08, 7:50 am

It seems I may have mixed things up a bit here.... The credential types
don't share the same names as their credential type class
implementations. Careful study of the documentation says that
CredentialVaultService.getCredential() takes a credential type as
specified in the credential registry, and from what I can gather the
credential types specified in the credential registry have names very
similar to their class implementations (although who would have known
without printing the registry names first, but they are listed in the
WPS infocenter).

Wouldn't it have been easier to have the credential type parameter
defined to be a Class object rather than a String?

Oh well. :-)
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com