public abstract class KdcRequest extends Object
| Constructor and Description |
|---|
KdcRequest(org.apache.kerby.kerberos.kerb.type.kdc.KdcReq kdcReq,
KdcContext kdcContext)
kdc request constructor
|
public KdcRequest(org.apache.kerby.kerberos.kerb.type.kdc.KdcReq kdcReq, KdcContext kdcContext)
kdcReq - kdc requestkdcContext - kdc contextpublic org.apache.kerby.kerberos.kerb.type.base.EncryptionKey getSessionKey()
public void setSessionKey(org.apache.kerby.kerberos.kerb.type.base.EncryptionKey sessionKey)
sessionKey - The session keypublic KdcContext getKdcContext()
public org.apache.kerby.kerberos.kerb.type.kdc.KdcReq getKdcReq()
public PreauthContext getPreauthContext()
public void process()
throws KrbException
KrbException - e.public KrbIdentity getTgsEntry()
public void setTgsEntry(KrbIdentity tgsEntry)
tgsEntry - TGS entrypublic boolean isTcp()
public void isTcp(boolean isTcp)
isTcp - set kdc request though TCP protocol or notpublic org.apache.kerby.kerberos.kerb.type.base.KrbMessage getReply()
public void setReply(org.apache.kerby.kerberos.kerb.type.kdc.KdcRep reply)
reply - replypublic InetAddress getClientAddress()
public void setClientAddress(InetAddress clientAddress)
clientAddress - client addresspublic org.apache.kerby.kerberos.kerb.type.base.EncryptionType getEncryptionType()
public void setEncryptionType(org.apache.kerby.kerberos.kerb.type.base.EncryptionType encryptionType)
encryptionType - encryption typepublic org.apache.kerby.kerberos.kerb.type.ticket.Ticket getTicket()
public void setTicket(org.apache.kerby.kerberos.kerb.type.ticket.Ticket ticket)
ticket - ticketpublic boolean isPreAuthenticated()
public void setPreAuthenticated(boolean isPreAuthenticated)
isPreAuthenticated - whether is preauthenticatedpublic KrbIdentity getServerEntry()
public void setServerEntry(KrbIdentity serverEntry)
serverEntry - server entrypublic KrbIdentity getClientEntry()
public void setClientEntry(KrbIdentity clientEntry)
clientEntry - client entrypublic org.apache.kerby.kerberos.kerb.type.base.EncryptionKey getClientKey(org.apache.kerby.kerberos.kerb.type.base.EncryptionType encType) throws KrbException
encType - encryption typeKrbException - epublic org.apache.kerby.kerberos.kerb.type.base.EncryptionKey getClientKey()
public void setClientKey(org.apache.kerby.kerberos.kerb.type.base.EncryptionKey clientKey)
clientKey - client keypublic org.apache.kerby.kerberos.kerb.type.base.EncryptionKey getServerKey()
public void setServerKey(org.apache.kerby.kerberos.kerb.type.base.EncryptionKey serverKey)
serverKey - server keypublic org.apache.kerby.kerberos.kerb.type.base.PrincipalName getTgsPrincipal()
public org.apache.kerby.kerberos.kerb.type.base.PrincipalName getCrossRealmTgsPrincipal(String remoteRealm)
public KrbIdentity getCrossRealmTgsEntry(String remoteRealm) throws KrbException
KrbExceptionpublic boolean checkCrossRealm(String remoteRealm) throws KrbException
KrbExceptionpublic boolean isCrossRealm()
public String getRemoteRealm()
protected abstract void makeReply()
throws KrbException
KrbException - eprotected void checkVersion()
throws KrbException
KrbException - eprotected void checkPolicy()
throws KrbException
KrbException - eprotected abstract void checkClient()
throws KrbException
KrbException - eprotected void preauth()
throws KrbException
KrbException - eprotected void setPreauthRequired(boolean preauthRequired)
preauthRequired - whether preauthentication requiredprotected boolean isPreauthRequired()
protected PreauthHandler getPreauthHandler()
protected void checkEncryptionType()
throws KrbException
KrbException - eprotected void authenticate()
throws KrbException
KrbException - eprotected abstract void issueTicket()
throws KrbException
KrbException - eprotected org.apache.kerby.kerberos.kerb.type.base.KrbError makePreAuthenticationError(KdcContext kdcContext, org.apache.kerby.kerberos.kerb.type.kdc.KdcReq request, KrbErrorCode errorCode, boolean pkinit) throws KrbException
kdcContext - kdc contextrequest - kdc requesterrorCode - krb error codeKrbException - eprotected KrbIdentity getEntry(String principal) throws KrbException
principal - PrincipalKrbException - eprotected ByteBuffer getRequestBody() throws KrbException
KrbException - epublic org.apache.kerby.kerberos.kerb.type.base.EncryptionKey getArmorKey() throws KrbException
KrbException - eprotected void setArmorKey(org.apache.kerby.kerberos.kerb.type.base.EncryptionKey armorKey)
armorKey - armor keypublic org.apache.kerby.kerberos.kerb.type.base.PrincipalName getClientPrincipal()
public void setClientPrincipal(org.apache.kerby.kerberos.kerb.type.base.PrincipalName clientPrincipal)
clientPrincipal - client principalpublic org.apache.kerby.kerberos.kerb.type.base.PrincipalName getServerPrincipal()
public void setServerPrincipal(org.apache.kerby.kerberos.kerb.type.base.PrincipalName serverPrincipal)
serverPrincipal - server principalprotected byte[] getInnerBodyout()
protected boolean isToken()
public boolean isHttps()
public void setHttps(boolean https)
public void setToken(org.apache.kerby.kerberos.kerb.type.base.AuthToken authToken)
authToken - The auth tokenprotected org.apache.kerby.kerberos.kerb.type.base.AuthToken getToken()
protected boolean isPkinit()
public boolean isAnonymous()
public org.apache.kerby.kerberos.kerb.type.kdc.KdcOptions getKdcOptions()
public void setReqPackage(ByteBuffer reqPackage)
public ByteBuffer getReqPackage()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.