org.apache.directory.server.kerberos.shared.messages
Class KdcReply

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.messages.KerberosMessage
      extended by org.apache.directory.server.kerberos.shared.messages.KdcReply
All Implemented Interfaces:
Encodable
Direct Known Subclasses:
AuthenticationReply, TicketGrantReply

public class KdcReply
extends KerberosMessage
implements Encodable

Version:
$Rev: 591019 $, $Date: 2007-11-01 15:16:34 +0100 (Do, 01 Nov 2007) $
Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.server.kerberos.shared.messages.KerberosMessage
PVNO
 
Constructor Summary
KdcReply(KerberosMessageType msgType)
          Creates a new instance of KdcReply.
KdcReply(PaData[] paData, javax.security.auth.kerberos.KerberosPrincipal clientPrincipal, Ticket ticket, EncryptedData encPart, KerberosMessageType msgType)
          Creates a new instance of KdcReply.
 
Method Summary
 KerberosTime getAuthTime()
          Returns the auth KerberosTime.
 HostAddresses getClientAddresses()
          Returns the client HostAddresses.
 javax.security.auth.kerberos.KerberosPrincipal getClientPrincipal()
          Returns the client KerberosPrincipal.
 java.lang.String getClientRealm()
          Returns the client realm.
 EncryptedData getEncPart()
          Returns the EncryptedData.
 KerberosTime getEndTime()
          Return the end KerberosTime.
 TicketFlags getFlags()
          Returns the TicketFlags.
 EncryptionKey getKey()
          Returns the EncryptionKey.
 KerberosTime getKeyExpiration()
          Returns the key expiration KerberosTime.
 LastRequest getLastRequest()
          Returns the LastRequest.
 int getNonce()
          Returns the nonce.
 PaData[] getPaData()
          Returns an array of PaDatas.
 KerberosTime getRenewTill()
          Returns the renew till KerberosTime.
 javax.security.auth.kerberos.KerberosPrincipal getServerPrincipal()
          Returns the server KerberosPrincipal.
 java.lang.String getServerRealm()
          Return the server realm.
 KerberosTime getStartTime()
          Returns the start KerberosTime.
 Ticket getTicket()
          Returns the Ticket.
 void setAuthTime(KerberosTime time)
          Sets the auth KerberosTime.
 void setClientAddresses(HostAddresses addresses)
          Sets the client HostAddresses.
 void setClientPrincipal(javax.security.auth.kerberos.KerberosPrincipal clientPrincipal)
          Sets the client KerberosPrincipal.
 void setEncKDCRepPart(EncKdcRepPart repPart)
          Sets the EncKdcRepPart.
 void setEncPart(EncryptedData part)
          Sets the EncryptedData.
 void setEndTime(KerberosTime time)
          Sets the end KerberosTime.
 void setFlags(TicketFlags flags)
          Sets the TicketFlags.
 void setKey(EncryptionKey key)
          Sets the EncryptionKey.
 void setKeyExpiration(KerberosTime expiration)
          Sets the key expiration KerberosTime.
 void setLastRequest(LastRequest request)
          Sets the LastRequest.
 void setNonce(int nonce)
          Sets the nonce.
 void setPaData(PaData[] data)
          Sets the array of PaDatas.
 void setRenewTill(KerberosTime till)
          Sets the renew till KerberosTime.
 void setServerPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
          Sets the server KerberosPrincipal.
 void setStartTime(KerberosTime time)
          Sets the start KerberosTime.
 void setTicket(Ticket ticket)
          Sets the Ticket.
 
Methods inherited from class org.apache.directory.server.kerberos.shared.messages.KerberosMessage
getMessageType, getProtocolVersionNumber, setMessageType, setProtocolVersionNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KdcReply

public KdcReply(KerberosMessageType msgType)
Creates a new instance of KdcReply.

Parameters:
msgType -

KdcReply

public KdcReply(PaData[] paData,
                javax.security.auth.kerberos.KerberosPrincipal clientPrincipal,
                Ticket ticket,
                EncryptedData encPart,
                KerberosMessageType msgType)
Creates a new instance of KdcReply.

Parameters:
paData -
clientPrincipal -
ticket -
encPart -
msgType -
Method Detail

getClientPrincipal

public javax.security.auth.kerberos.KerberosPrincipal getClientPrincipal()
Returns the client KerberosPrincipal.

Returns:
The client KerberosPrincipal.

getClientRealm

public java.lang.String getClientRealm()
Returns the client realm.

Returns:
The client realm.

getEncPart

public EncryptedData getEncPart()
Returns the EncryptedData.

Returns:
The EncryptedData.

getPaData

public PaData[] getPaData()
Returns an array of PaDatas.

Returns:
The array of PaDatas.

getTicket

public Ticket getTicket()
Returns the Ticket.

Returns:
The Ticket.

setClientPrincipal

public void setClientPrincipal(javax.security.auth.kerberos.KerberosPrincipal clientPrincipal)
Sets the client KerberosPrincipal.

Parameters:
clientPrincipal -

setEncKDCRepPart

public void setEncKDCRepPart(EncKdcRepPart repPart)
Sets the EncKdcRepPart.

Parameters:
repPart -

setEncPart

public void setEncPart(EncryptedData part)
Sets the EncryptedData.

Parameters:
part -

setPaData

public void setPaData(PaData[] data)
Sets the array of PaDatas.

Parameters:
data -

setTicket

public void setTicket(Ticket ticket)
Sets the Ticket.

Parameters:
ticket -

getAuthTime

public KerberosTime getAuthTime()
Returns the auth KerberosTime.

Returns:
The auth KerberosTime.

getClientAddresses

public HostAddresses getClientAddresses()
Returns the client HostAddresses.

Returns:
The client HostAddresses.

getEndTime

public KerberosTime getEndTime()
Return the end KerberosTime.

Returns:
The end KerberosTime.

getFlags

public TicketFlags getFlags()
Returns the TicketFlags.

Returns:
The TicketFlags.

getKey

public EncryptionKey getKey()
Returns the EncryptionKey.

Returns:
The EncryptionKey.

getKeyExpiration

public KerberosTime getKeyExpiration()
Returns the key expiration KerberosTime.

Returns:
The key expiration KerberosTime.

getLastRequest

public LastRequest getLastRequest()
Returns the LastRequest.

Returns:
The LastRequest.

getNonce

public int getNonce()
Returns the nonce.

Returns:
The nonce.

getRenewTill

public KerberosTime getRenewTill()
Returns the renew till KerberosTime.

Returns:
The renew till KerberosTime.

getServerPrincipal

public javax.security.auth.kerberos.KerberosPrincipal getServerPrincipal()
Returns the server KerberosPrincipal.

Returns:
The server KerberosPrincipal.

getServerRealm

public java.lang.String getServerRealm()
Return the server realm.

Returns:
The server realm.

getStartTime

public KerberosTime getStartTime()
Returns the start KerberosTime.

Returns:
The start KerberosTime.

setAuthTime

public void setAuthTime(KerberosTime time)
Sets the auth KerberosTime.

Parameters:
time -

setClientAddresses

public void setClientAddresses(HostAddresses addresses)
Sets the client HostAddresses.

Parameters:
addresses -

setEndTime

public void setEndTime(KerberosTime time)
Sets the end KerberosTime.

Parameters:
time -

setFlags

public void setFlags(TicketFlags flags)
Sets the TicketFlags.

Parameters:
flags -

setKey

public void setKey(EncryptionKey key)
Sets the EncryptionKey.

Parameters:
key -

setKeyExpiration

public void setKeyExpiration(KerberosTime expiration)
Sets the key expiration KerberosTime.

Parameters:
expiration -

setLastRequest

public void setLastRequest(LastRequest request)
Sets the LastRequest.

Parameters:
request -

setNonce

public void setNonce(int nonce)
Sets the nonce.

Parameters:
nonce -

setRenewTill

public void setRenewTill(KerberosTime till)
Sets the renew till KerberosTime.

Parameters:
till -

setServerPrincipal

public void setServerPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
Sets the server KerberosPrincipal.

Parameters:
principal -

setStartTime

public void setStartTime(KerberosTime time)
Sets the start KerberosTime.

Parameters:
time -


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.