public class KrbClient extends KrbClientBase
| Constructor and Description |
|---|
KrbClient()
Default constructor.
|
KrbClient(File confDir)
Constructor with conf dir
|
KrbClient(KrbConfig krbConfig)
Construct with prepared KrbConfig.
|
| Modifier and Type | Method and Description |
|---|---|
TgtTicket |
requestTgt(String principal,
File keytabFile)
Request a TGT with user plain credential
|
TgtTicket |
requestTgt(String principal,
String password)
Request a TGT with user plain credential
|
getKrbConfig, getSetting, init, requestSgt, requestSgt, requestTgt, setAllowTcp, setAllowUdp, setKdcHost, setKdcRealm, setKdcTcpPort, setKdcUdpPort, setTimeout, storeTicketpublic KrbClient()
throws KrbException
KrbException - epublic KrbClient(KrbConfig krbConfig)
krbConfig - The krb configpublic KrbClient(File confDir) throws KrbException
confDir - The conf dirKrbException - epublic TgtTicket requestTgt(String principal, String password) throws KrbException
principal - The principalpassword - The passwordKrbException - epublic TgtTicket requestTgt(String principal, File keytabFile) throws KrbException
principal - The principalkeytabFile - The keytab fileKrbException - eCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.