public abstract class KdcRequest extends Object
| Constructor and Description |
|---|
KdcRequest(KrbContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHost(String hostNameOrIpAddress) |
void |
askQuestion(String question,
String challenge) |
void |
cacheValue(String key,
Object value)
Set a state item which will be recorded to an output
ccache, if the calling application supplied one.
|
protected byte[] |
decryptWithClientKey(EncryptedData data,
KeyUsage usage) |
int |
generateNonce() |
EncryptionKey |
getArmorKey()
Get a pointer to the FAST armor key, or NULL if the client is not using FAST.
|
EncryptionKey |
getAsKey() |
Object |
getCacheValue(String key)
Get a state item from an input ccache, which may allow it
to retrace the steps it took last time.
|
EncryptionType |
getChosenEncryptionType() |
int |
getChosenNonce() |
abstract EncryptionKey |
getClientKey() |
abstract PrincipalName |
getClientPrincipal() |
KrbContext |
getContext() |
Map<String,Object> |
getCredCache() |
List<EncryptionType> |
getEncryptionTypes() |
EncryptionType |
getEncType()
Get the enctype expected to be used to encrypt the encrypted portion of
the AS_REP packet.
|
KrbFastRequestState |
getFastRequestState() |
HostAddresses |
getHostAddresses() |
KdcOptions |
getKdcOptions() |
KdcRep |
getKdcRep() |
KdcReq |
getKdcReq() |
byte[] |
getOuterRequestBody() |
PreauthContext |
getPreauthContext() |
protected PreauthHandler |
getPreauthHandler() |
org.apache.kerby.KOptions |
getPreauthOptions() |
KerberosTime |
getPreauthTime()
Get the current time for use in a preauth response.
|
protected KdcReqBody |
getReqBody(KerberosTime renewTill) |
org.apache.kerby.KOptions |
getRequestOptions() |
PrincipalName |
getServerPrincipal() |
Object |
getSessionData() |
KerberosTime |
getTicketTillTime() |
long |
getTicketValidTime() |
boolean |
isRetrying() |
protected KdcReqBody |
makeReqBody(KerberosTime renewTill) |
void |
needAsKey()
Indicate interest in the AS key.
|
protected void |
preauth() |
void |
process() |
protected void |
processKdcOptions() |
abstract void |
processResponse(KdcRep kdcRep) |
void |
resetPrequthContxt() |
void |
setAllowedPreauth(PaDataType paType) |
void |
setAsKey(EncryptionKey asKey) |
void |
setChosenEncryptionType(EncryptionType chosenEncryptionType) |
void |
setChosenNonce(int nonce) |
void |
setContext(KrbContext context) |
void |
setEncryptionTypes(List<EncryptionType> encryptionTypes) |
void |
setFastRequestState(KrbFastRequestState state) |
void |
setHostAddresses(List<HostAddress> hostAddresses) |
void |
setKdcOptions(KdcOptions kdcOptions) |
void |
setKdcRep(KdcRep kdcRep) |
void |
setKdcReq(KdcReq kdcReq) |
void |
setOuterRequestBody(byte[] outerRequestBody) |
void |
setPreauthRequired(boolean preauthRequired) |
void |
setRequestOptions(org.apache.kerby.KOptions options) |
void |
setServerPrincipal(PrincipalName serverPrincipal) |
void |
setSessionData(Object sessionData) |
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(KerberosTime renewTill) throws KrbException
KrbExceptionpublic KdcRep getKdcRep()
public void setKdcRep(KdcRep kdcRep)
protected KdcReqBody makeReqBody(KerberosTime renewTill) 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–2017 The Apache Software Foundation. All rights reserved.