Retrieving credentials without authenticating
To retrieve credentials without authenticating, the calling application can call the JAAS LoginModule with only a principal name specified as a short name or an X.500 distinguished name (DN).
The LoginModule expects the calling application to provide the user name through a javax.security.auth.callback.NameCallback.
Parent topic: Authenticating users and obtaining credentials