posted 15 years ago
Hi,
When JAAS fails to create a LoginContext, or when some error occurs while calling LoginContext.login(), it usually throws a LoginException. So if error A occurs or error B occurs, a LoginException will be thrown. When I catch the exception, I need to know if it was because of error A or error B. Right now, the only thing I can do is check the exception's message, which is pretty horrible. Is there a better way to do this?
Also, these messages have error codes at the end (e.g. an error message can be "Client not found in Kerberos databse (6)". Where can I find information about the different error codes and what each of them mean?
Thanks!!