public class Kinit extends Object
Constructor and Description |
---|
Kinit(KdcConnection kdc) |
Modifier and Type | Method and Description |
---|---|
File |
getCredCacheFile() |
void |
kinit(String principal,
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(File credCacheFile) |
public Kinit(KdcConnection kdc)
public void setCredCacheFile(File credCacheFile)
public File getCredCacheFile()
public void kinit(String principal, String password) throws Exception
principal
- the client's principalpassword
- password of the clientException
- If we had an issue while getting the TGT, or creating the PrincipalName, or
storing the credentialsCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.