org.apache.directory.server.kerberos.shared.messages.components
Class EncKdcRepPart

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.messages.components.EncKdcRepPart
All Implemented Interfaces:
Encodable
Direct Known Subclasses:
EncAsRepPart, EncTgsRepPart

public class EncKdcRepPart
extends java.lang.Object
implements Encodable

Base class for encrypted parts of KDC responses.

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

Constructor Summary
EncKdcRepPart()
          Creates a new instance of EncKdcRepPart.
EncKdcRepPart(EncryptionKey key, LastRequest lastReq, int nonce, KerberosTime keyExpiration, TicketFlags flags, KerberosTime authtime, KerberosTime starttime, KerberosTime endtime, KerberosTime renewTill, javax.security.auth.kerberos.KerberosPrincipal serverPrincipal, HostAddresses caddr, MessageComponentType componentType)
          Creates a new instance of EncKdcRepPart.
 
Method Summary
 KerberosTime getAuthTime()
          Returns the auth KerberosTime.
 HostAddresses getClientAddresses()
          Returns the client HostAddresses.
 MessageComponentType getComponentType()
          Returns the MessageComponentType.
 KerberosTime getEndTime()
          Returns 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.
 KerberosTime getRenewTill()
          Returns the renew till KerberosTime.
 javax.security.auth.kerberos.KerberosPrincipal getServerPrincipal()
          Returns the server KerberosPrincipal.
 java.lang.String getServerRealm()
          Returns the server realm.
 KerberosTime getStartTime()
          Returns the start KerberosTime.
 void setAuthTime(KerberosTime time)
          Sets the auth KerberosTime.
 void setClientAddresses(HostAddresses addresses)
          Sets the client HostAddresses.
 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncKdcRepPart

public EncKdcRepPart()
Creates a new instance of EncKdcRepPart.


EncKdcRepPart

public EncKdcRepPart(EncryptionKey key,
                     LastRequest lastReq,
                     int nonce,
                     KerberosTime keyExpiration,
                     TicketFlags flags,
                     KerberosTime authtime,
                     KerberosTime starttime,
                     KerberosTime endtime,
                     KerberosTime renewTill,
                     javax.security.auth.kerberos.KerberosPrincipal serverPrincipal,
                     HostAddresses caddr,
                     MessageComponentType componentType)
Creates a new instance of EncKdcRepPart.

Parameters:
key -
lastReq -
nonce -
keyExpiration -
flags -
authtime -
starttime -
endtime -
renewTill -
serverPrincipal -
caddr -
componentType -
Method Detail

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()
Returns 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()
Returns the server realm.

Returns:
The server realm.

getStartTime

public KerberosTime getStartTime()
Returns the start KerberosTime.

Returns:
The start KerberosTime.

getComponentType

public MessageComponentType getComponentType()
Returns the MessageComponentType.

Returns:
The MessageComponentType.

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-2011 Apache Software Foundation. All Rights Reserved.