org.apache.directory.shared.kerberos.components
Class EncKrbCredPart

java.lang.Object
  extended by org.apache.directory.shared.asn1.AbstractAsn1Object
      extended by org.apache.directory.shared.kerberos.components.EncKrbCredPart
All Implemented Interfaces:
org.apache.directory.shared.asn1.Asn1Object

public class EncKrbCredPart
extends org.apache.directory.shared.asn1.AbstractAsn1Object

EncKrbCredPart ::= [APPLICATION 29] SEQUENCE { ticket-info [0] SEQUENCE OF KrbCredInfo, nonce [1] UInt32 OPTIONAL, timestamp [2] KerberosTime OPTIONAL, usec [3] Microseconds OPTIONAL, s-address [4] HostAddress OPTIONAL, r-address [5] HostAddress OPTIONAL }

Author:
Apache Directory Project

Constructor Summary
EncKrbCredPart()
           
 
Method Summary
 void addTicketInfo(KrbCredInfo info)
          add KrbCredInfo object to the existing list of ticket-info
 int computeLength()
          computing length of EncKrbCredPart:
 ByteBuffer encode(ByteBuffer buffer)
          
 Integer getNonce()
           
 HostAddress getRecipientAddress()
           
 HostAddress getSenderAddress()
           
 List<KrbCredInfo> getTicketInfo()
           
 KerberosTime getTimestamp()
           
 Integer getUsec()
           
 void setNonce(Integer nonce)
           
 void setRecipientAddress(HostAddress recipientAddress)
           
 void setSenderAddress(HostAddress senderAddress)
           
 void setTicketInfo(List<KrbCredInfo> ticketInfo)
           
 void setTimestamp(KerberosTime timestamp)
           
 void setUsec(Integer usec)
           
 String toString()
           
 
Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EncKrbCredPart

public EncKrbCredPart()
Method Detail

computeLength

public int computeLength()
computing length of EncKrbCredPart:
  0x7D L1
   |
   +--> 0x30 L1-2 EncKrbCredPart seq tag
         |
         +--> 0xA0 L2 seq of KrbCredInfo tag
         |     |
         |     +--> 0x30 L2-2 seq tag
         |     |
         |     +--> 0x30 LL1 KrbCredInfo
         |     .      ....
         |     +--> 0x30 LLn KrbCredInfo
         |
         +--> 0xA1 L3 nonce tag
         |     |
         |     +--> 0x02 L3-2 nonce (UInt32)
         |
         +--> 0xA2 11 timestamp tag
         |     |
         |     +--> 0x18 0x0F timestamp (KerberosTime)
         |
         +--> 0xA3 L4 usec tag
         |     |
         |     +--> 0x02 L4-2 usec (Microseconds)
         |
         +--> 0xA4 L5 s-address tag
         |     |
         |     +--> 0x30 L5-2 s-address (HostAddress)
         |
         +--> 0xA5 L6 r-address tag
               |
               +--> 0x30 L6-2 s-address (HostAddress) 
   
 


encode

public ByteBuffer encode(ByteBuffer buffer)
                  throws org.apache.directory.shared.asn1.EncoderException

Specified by:
encode in interface org.apache.directory.shared.asn1.Asn1Object
Overrides:
encode in class org.apache.directory.shared.asn1.AbstractAsn1Object
Throws:
org.apache.directory.shared.asn1.EncoderException

getTicketInfo

public List<KrbCredInfo> getTicketInfo()
Returns:
the ticketInfo

setTicketInfo

public void setTicketInfo(List<KrbCredInfo> ticketInfo)
Parameters:
ticketInfo - the ticketInfo to set

getNonce

public Integer getNonce()
Returns:
the nonce

setNonce

public void setNonce(Integer nonce)
Parameters:
nonce - the nonce to set

getTimestamp

public KerberosTime getTimestamp()
Returns:
the timestamp

setTimestamp

public void setTimestamp(KerberosTime timestamp)
Parameters:
timestamp - the timestamp to set

getUsec

public Integer getUsec()
Returns:
the usec

setUsec

public void setUsec(Integer usec)
Parameters:
usec - the usec to set

getSenderAddress

public HostAddress getSenderAddress()
Returns:
the senderAddress

setSenderAddress

public void setSenderAddress(HostAddress senderAddress)
Parameters:
senderAddress - the senderAddress to set

getRecipientAddress

public HostAddress getRecipientAddress()
Returns:
the recipientAddress

setRecipientAddress

public void setRecipientAddress(HostAddress recipientAddress)
Parameters:
recipientAddress - the recipientAddress to set

addTicketInfo

public void addTicketInfo(KrbCredInfo info)
add KrbCredInfo object to the existing list of ticket-info

Parameters:
info - the KrbCredInfo

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.