I waws able to get the tocket from the windows LSA. Unfortunately, a registry change has to be made for certain versions of windows :(

Here is my login.conf :

JaasSample {
debug=true ;

and code:

public static void main(String[] args) {
System.setProperty("", "C:\\login.conf");
System.setProperty("", "true");

LoginContext lc = null;
try {
lc = new LoginContext("JaasSample", new TextCallbackHandler());

final Subject s = lc.getSubject();

System.out.println("Private credentials:");
for (Object p : s.getPrivateCredentials()) {
} catch (LoginException ex) {
Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);

Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2015 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact