Hello,

LDAP Realms (and probably others) in tomcat uses GenericPrincipal as the
Principal instance. This GenericPrincipal provides interresting methods
like 'getPassword()' which is very usefull when your webapp has to
forward the credential to a specific library before using it.
Unfortunately, typecasting to GenericPrincipal like that

String password = ((GenericPrincipal)principal).getPassword();

Does not work, as it seems the GenericPrincipal class is not exposed to
webapp at runtime:

Exception Class:  class java.lang.NoClassDefFoundError
Message:  org/apache/catalina/realm/GenericPrincipal

Is there a recommanded way to access this information (user suplied 
password) from the webapp? Or will i have to play with reflection api or
beanutils to extract this property?

Thanks for follow ups.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to