The largest Interview Solution Library on the web


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

Kerberos Login Module


public KerberosLoginModule extends LoginModule {
private KerberosUserPrincipal kup;
private KerberosTGTCredential ktc;
private Subject subj;
public void initialize (Subject s...) { subj=s; ... }
public boolean login() {
if (callbackHandler == null) { // no way to get parameters???
} else {
get username, pw, realm;
authenticate, remember kup and tkc;
}
}
public boolean commit() {
subj.getPrincipals.add(kup);
subj.getPublicCredentials.add(ktc);
}
}
« Previous | 1 | 2 | 3 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com