public abstract class KdcRequest extends Object
| Constructor and Description |
|---|
KdcRequest(KrbContext context) |
public KdcRequest(KrbContext context)
public KrbFastRequestState getFastRequestState()
public void setFastRequestState(KrbFastRequestState state)
public byte[] getOuterRequestBody()
public void setOuterRequestBody(byte[] outerRequestBody)
public Object getSessionData()
public void setSessionData(Object sessionData)
public org.apache.kerby.KOptions getRequestOptions()
public void setRequestOptions(org.apache.kerby.KOptions options)
public boolean isRetrying()
public EncryptionKey getAsKey() throws KrbException
KrbExceptionpublic void setAsKey(EncryptionKey asKey)
public void setAllowedPreauth(PaDataType paType)
public void setPreauthRequired(boolean preauthRequired)
public void resetPrequthContxt()
public PreauthContext getPreauthContext()
public KdcReq getKdcReq()
public void setKdcReq(KdcReq kdcReq)
protected KdcReqBody getReqBody() throws KrbException
KrbExceptionpublic KdcRep getKdcRep()
public void setKdcRep(KdcRep kdcRep)
protected KdcReqBody makeReqBody() throws KrbException
KrbExceptionpublic KdcOptions getKdcOptions()
public void setKdcOptions(KdcOptions kdcOptions)
public HostAddresses getHostAddresses()
public void setHostAddresses(List<HostAddress> hostAddresses)
public KrbContext getContext()
public void setContext(KrbContext context)
protected byte[] decryptWithClientKey(EncryptedData data, KeyUsage usage) throws KrbException
KrbExceptionpublic abstract PrincipalName getClientPrincipal()
public PrincipalName getServerPrincipal()
public void setServerPrincipal(PrincipalName serverPrincipal)
public List<EncryptionType> getEncryptionTypes()
public void setEncryptionTypes(List<EncryptionType> encryptionTypes)
public EncryptionType getChosenEncryptionType()
public void setChosenEncryptionType(EncryptionType chosenEncryptionType)
public int generateNonce()
public int getChosenNonce()
public void setChosenNonce(int nonce)
public abstract EncryptionKey getClientKey() throws KrbException
KrbExceptionpublic long getTicketValidTime()
public KerberosTime getTicketTillTime()
public void addHost(String hostNameOrIpAddress) throws UnknownHostException
UnknownHostExceptionpublic void process()
throws KrbException
KrbExceptionpublic abstract void processResponse(KdcRep kdcRep) throws KrbException
KrbExceptionpublic org.apache.kerby.KOptions getPreauthOptions()
protected void preauth()
throws KrbException
KrbExceptionprotected PreauthHandler getPreauthHandler()
public void needAsKey()
throws KrbException
KrbException - epublic EncryptionType getEncType()
public EncryptionKey getArmorKey()
public KerberosTime getPreauthTime()
public Object getCacheValue(String key)
key - The key stringpublic void cacheValue(String key, Object value)
key - The key stringvalue - The valueprotected void processKdcOptions()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.