public class Kinit
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
credCacheFile |
private KdcConnection |
kdc |
| Constructor and Description |
|---|
Kinit(KdcConnection kdc) |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getCredCacheFile() |
void |
kinit(java.lang.String principal,
java.lang.String password)
Authenticates to the Kerberos server and gets the initial Ticket Granting Ticket,
then cache the tgt in credentials cache, as MIT kinit does.
|
void |
setCredCacheFile(java.io.File credCacheFile) |
private KdcConnection kdc
private java.io.File credCacheFile
public Kinit(KdcConnection kdc)
public void setCredCacheFile(java.io.File credCacheFile)
public java.io.File getCredCacheFile()
public void kinit(java.lang.String principal,
java.lang.String password)
throws java.lang.Exception
principal - the client's principalpassword - password of the clientjava.lang.Exception