• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAAS LoginException documentation

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!!
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ed,

I have the same problem and I can't find the way to retrieve any additional information from the exception.

Did you have any luck with this?

Thanks,
reply
    Bookmark Topic Watch Topic
  • New Topic