public abstract class AbstractInternalKrbClient extends Object implements InternalKrbClient
| Constructor and Description |
|---|
AbstractInternalKrbClient(KrbSetting krbSetting) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract SgtTicket |
doRequestSgt(TgsRequest tgsRequest) |
protected abstract TgtTicket |
doRequestTgt(AsRequest tgtTktReq) |
protected String |
fixPrincipal(String principal)
Fix principal name.
|
protected KrbContext |
getContext() |
KrbSetting |
getSetting()
Get krb client settings.
|
void |
init()
Init with all the necessary options.
|
SgtTicket |
requestSgt(org.apache.kerby.KOptions requestOptions)
Request a service ticket provided request options
|
TgtTicket |
requestTgt(org.apache.kerby.KOptions requestOptions)
Request a Ticket Granting Ticket.
|
public AbstractInternalKrbClient(KrbSetting krbSetting)
protected KrbContext getContext()
public KrbSetting getSetting()
getSetting in interface InternalKrbClientpublic void init()
throws KrbException
init in interface InternalKrbClientKrbException - epublic TgtTicket requestTgt(org.apache.kerby.KOptions requestOptions) throws KrbException
requestTgt in interface InternalKrbClientrequestOptions - The request optionsKrbException - epublic SgtTicket requestSgt(org.apache.kerby.KOptions requestOptions) throws KrbException
requestSgt in interface InternalKrbClientrequestOptions - The request optionsKrbException - eprotected abstract TgtTicket doRequestTgt(AsRequest tgtTktReq) throws KrbException
KrbExceptionprotected abstract SgtTicket doRequestSgt(TgsRequest tgsRequest) throws KrbException
KrbExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.