The largest Interview Solution Library on the web


java tutorials/
« Previous | 1 | 2 | 3 | Next »

Configuring to use Kerberos


testKerberosAL {
com.ibm.security.auth.KerberosLoginModule required
debug=true;
};........login configuration file

...
LoginContext lc = new LoginContext("testKerberosAL");
lc.login();
Subject whoami = lc.getSubject();
Subject.doAs(lc.getSubject(), someActionInstance);
...
..........code in exploiting application
« Previous | 1 | 2 | 3 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com