public class KrbTokenClient extends KrbClientBase
| Constructor and Description |
|---|
KrbTokenClient()
Default constructor.
|
KrbTokenClient(File confDir)
Constructor with conf dir
|
KrbTokenClient(KrbClient krbClient)
Constructor with prepared KrbClient.
|
KrbTokenClient(KrbConfig krbConfig)
Construct with prepared KrbConfig.
|
| Modifier and Type | Method and Description |
|---|---|
SgtTicket |
requestSgt(AuthToken token,
String serverPrincipal,
String armorCache)
Request a service ticket using an Access Token.
|
TgtTicket |
requestTgt(AuthToken token,
String armorCache)
Request a TGT with user token credential and armor cache
|
TgtTicket |
requestTgt(AuthToken token,
TgtTicket tgt)
Request a TGT with user token credential and tgt
|
getKrbConfig, getSetting, init, requestSgt, requestSgt, requestTgt, setAllowTcp, setAllowUdp, setKdcHost, setKdcRealm, setKdcTcpPort, setKdcUdpPort, setTimeout, storeTicketpublic KrbTokenClient()
throws KrbException
KrbException - epublic KrbTokenClient(KrbConfig krbConfig)
krbConfig - The krb configpublic KrbTokenClient(File confDir) throws KrbException
confDir - The conf dirKrbException - epublic KrbTokenClient(KrbClient krbClient)
krbClient - The krb clientpublic TgtTicket requestTgt(AuthToken token, String armorCache) throws KrbException
token - The auth tokenarmorCache - The armor cacheKrbException - epublic TgtTicket requestTgt(AuthToken token, TgtTicket tgt) throws KrbException
token - The auth tokentgt - The tgt ticketKrbException - epublic SgtTicket requestSgt(AuthToken token, String serverPrincipal, String armorCache) throws KrbException
token - The auth tokenserverPrincipal - The server principalarmorCache - The armor cacheKrbException - eCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.